[ http://issues.apache.org/jira/browse/AXIS2-595?page=comments#action_12422094 ] Guus der Kinderen commented on AXIS2-595: -----------------------------------------
As per Dims' request an exact reproduction of my situation. Currently, I've falling back to the Axis (1) setup we originally had, but the Axis2 setup is almost identical. We're using a Jetty instance in a plugin for our java application. That plugin gets unloaded and reloaded often, without the JVM restarting. On initialisation, we start a Jetty instance, load Axis and start Jetty, as described in the first part of the init_and_unload.fragments attachment. The plugin has a deconstructor-like method, called before the plugin is unloaded. The bottom part of the attachment is part of that method. I noticed that whenever we unloaded the plugin, the plugin class wouldn't get unloaded from the permanent generation ( -XX:+TraceClassUnloading ). Reloading the plugin causes another permgen allocation, slowly filling up the memory. I've tried this with the Axis2 war files too, with the same results. As soon as I load another web application, the plugin unloads fine. > Redeploying axis2.war - OutOfMemory in PermGen space > ---------------------------------------------------- > > Key: AXIS2-595 > URL: http://issues.apache.org/jira/browse/AXIS2-595 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: deployment > Environment: JBoss 4.0.4RC1 , OS X Java 1.5.0_06-112 > Reporter: Jens Schumann > Attachments: gc-load-on-startup-disabled.log, gc.log, > init_and_unload.fragments > > > Since I have been playing around with axis2.war last days I have noticed that > I do run into an OutOfMemory after a certain number of hot redeployments. > Although JBoss isn't known for releasing all resources during redeploy it is > interesting to see that this happens in PermGen space. Could it be that the > custom .aar/.mar deployment does not release all loaded resources? > 00:07:47,816 ERROR [[/axis2]] StandardWrapper.Throwable > java.lang.OutOfMemoryError: PermGen space > 00:07:47,820 ERROR [[/axis2]] Servlet /axis2 threw load() exception > java.lang.OutOfMemoryError: PermGen space -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]