Description
Axis2 is loaded several times using different classloaders. In every classloader ListenerManager register new Shutdown Hook:
Runtime.getRuntime().addShutdownHook(new ListenerManagerShutdownThread(this));
So, every call to AxisServlet (in new classloader) leak 500 Kb of memory.
There is should be an option in AxisServlet and ListenerManager to disable shutdown hook. Anyway, stop() method is promiced to be called from AxisServlet::destroy() => ConfigurationContext::terminate()
Attachments
Attachments
Issue Links
- duplicates
-
AXIS2-3732 ListenerManager don't remove a ListenerManager$ListenerManagerShutdownThread out of Shutdown class after undeploy an axis application.
- Resolved
- relates to
-
AXIS2-3862 ListenerManager::startedTransports is not visible to child classes
- Resolved
-
AXIS2-3863 Extract initTransport() method from AxisServlet::init( ServletConfig )
- Resolved