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.
Joined: Apr 13, 2006
What container are you using?
I am using Tomcat Server and may i know what is the difference between PerGmen and Heap Space Error