This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Originally posted by Rama Krishna Ghanta: This is absolutely an error related to the servers performance and i hope the only way to solve this is to increase the heap size.
Regards, Rama Krishna Ghanta
This is not correct. The heap space and permGen space are separate.
To increase your PermGen space use the -XX:MaxPermSize option. Example:
From research after getting the same error consistently in Eclipse 3.2 some time back it seems that excessive use of String.intern() can cause this condition. I don't know of a servlet container or JSP compiler that's guilty of that (which doesn't mean they don't exist, there must be many I've never even heard of), but if you use String.intern() in your own web application you may want to think hard about whether you really need to use it.
42
Ram kanana
Ranch Hand
Joined: Apr 13, 2006
Posts: 34
posted
0
What container are you using?
I am using Tomcat Server and may i know what is the difference between PerGmen and Heap Space Error
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
0
Originally posted by Ram kanana: I am using Tomcat Server and may i know what is the difference between PerGmen and Heap Space Error
I believe, PermGen is a JVM's garbage collector managed generation and it is not allocated by your java application, whereas latter is allocated by your application.
This might give you the overview.
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
0
Originally posted by Jeroen T Wenting: From research after getting the same error consistently in Eclipse 3.2 some time back it seems that excessive use of String.intern() can cause this condition.
I have also came across the similar reading that it happens when unreferenced/orphan interned string are not garbage collected.