6 Replies Latest reply on Feb 13, 2012 5:41 AM by Jean-Frederic Clere

    JreMemoryLeakPreventionListener for JBoss 5.1

    Ondrej Medek Apprentice



      we use JBoss 5.1.0GA and have a memory leak, highly probably caused by JasperReports and sun.awt.AppContext JRE memory leak. The new Tomcat 6 has a class JreMemoryLeakPreventionListener to prevent this kind of leak. Is there any way how to port this class into JBoss 5.5.


      Or, I think I just neet to run the code




      by the system (common) class loader. So the question is, how to execute some code by the system class loader in JBoss - either when the JBoss starts or then the Tomcat 5.5 starts up.