PermGen space

Version 2.1 by Ken McWilliams on 2012/03/12 22:20

By following the Integration guides here will lead you to PermGen Space errors.  Hopefully we can track down and resolove likely causes for these issues in Glassfish and the integration guides found here.

There are many "solutions" to this issue many involving garbage collection parameters and increasing memory limits. The main cause is a fault in the application code, or the libraries that that code depends on and the issue can not be simply resolved by using garbage collection flag. The issue can be delayed by raising memory limits but that is only a temoporary issue.  The only imediate resolution is found in restarting the JVM instance responsible for the application server.

Understanding the Issue

Classloader leaks: the dreaded "java.lang.OutOfMemoryError: PermGen space" exception

How to fix the dreaded "java.lang.OutOfMemoryError: PermGen space" exception (classloader leaks)