Java.lang.OutOfMemoryError: PermGen space

From Resin 3.0

Revision as of 09:58, 6 December 2005 by Sam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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