java.lang.OutOfMemoryError : PermGen Space

By: kumar potla - kumarjasper
java.lang.OutOfMemoryError : PermGen Space
2006-07-05 11:34
When i am trying to fill Report i am getting Error as below
java.lang.OutOfMemoryError : PermGen Space

if anyone knows this error please let me know.

By: Teodor Danciu - teodord
RE: java.lang.OutOfMemoryError : PermGen Spac
2006-07-06 00:43


Are you using the file virtualizer?
In any case, try launch the JVM with this option:
or more

I hope this helps.
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 11 years 2 weeks ago

3 Answers:

This error occurs when the JVM runs out of space in the permanent generation heap.

If the application(s) in the server use a large number of classes, the solution is to increase the value specified with -XX:MaxPermSize.

If the error occurs only after the redeployment and restart of new applications, then the likely cause is that the JVM cannot garbage collect old classes that are replaced because there are references to the old classes.
Post edited by: javydreamercsw, at: 2006/09/06 20:55
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 10 months 2 weeks ago
I also came across the same problem but wen I restart my server It just went away.
U can try also.
I am working on Tomcat5.5

Hopefully It will work
neetikamittal's picture
Joined: Jul 25 2006 - 9:18am
Last seen: 11 years 1 month ago
Tomcat version won't make a difference. Is a known memory leak that have been bugging tomcat and many other programs that loads plenty of classes at the same time. It'll indeed help restarting the server but it brings up the question on what'll happen if you use JasperIntelligence in a production environment with many people using it at once...
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 10 months 2 weeks ago