OutOfMemoryException after redeploying application several times

March 20th, 2009

Applies to:
JBoss

Description:
Occurs when redeploying an application several times

Cause:
There is a BUG related to class unloading http://jira.jboss.com/jira/browse/JBAS-1319.
The web container (Tomcat) was still holding references to the ClassLoaders (required condition to unload the class).
Sun’s Java virtual machine creates a so called Permanent Generation in their memory heap where they store reflective data about the current runtime. In practice this usually means instances of java.lang.Class and java.lang.reflect. classes. These classes are only unloaded if all the references to the classLoaders are gone plus there is no more instances of the class. This will happen during Full GC operations.

admin JAVA-JBoss

  1. No solutions yet.
  1. No trackbacks yet.