Red Hat Bugzilla – Bug 985274
PermGen memory leak on application deploy->undeploy
Last modified: 2015-08-02 19:44:10 EDT
Created attachment 774677 [details]
Application to deploy
When I deploy and undeploy application few times. Loaded classes are not garbage collected and server crashes on OutOfMemoryError: PermGen space.
Steps to Reproduce:
1. Download and start JBoss EAP 6.1 server
2. Download and build application attached to this issue - mvn clean install
3. Repeatedly copy and remove application in standalone/deployments directory (about 15 times).
You can easily monitor Perm Gen size with jconsole. I'm attaching jconsole screenshot.
I tried same scenario with Tomcat and it works properly.
Attached application is Camel application which should be certified with JBoss EAP for customer support.
Created attachment 774678 [details]
Comment on attachment 774678 [details]
Sharp line at the end is the crash
This bug troubles me when my testsuite have more application and I want to run it repeatedly.
All memory leaks are not class loading problems; I am just one person and cannot track down every leak in every component of the app server. Have you done a heap analysis to discover which component is actually leaking? It would be more appropriate to set the component to the one with the leak.
All dependencies are packed within the application war file. When profiling the server I see lot of ModuleClassLoader with the classes used by application even no application is deployed.
Can you please help me with some steps which can I use to provide you some more information?
No longer reproducible on 6.x branch, closing.