Java.lang.OutOfMemoryError: PermGen space

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
  
 
This error occurs when the JVM runs out of space in the permanent generation heap.
 
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  
 
If the application(s) in the server use a large number of classes, the solution is  
 
to increase the value specified with [[-XX:MaxPermSize]].   
 
to increase the value specified with [[-XX:MaxPermSize]].   

Revision as of 08:58, 6 December 2005


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, as discussed in Classloader references.

Personal tools