axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Commented: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager
Date Mon, 16 Jun 2008 23:05:44 GMT


Andreas Veithen commented on AXIS2-3861:

I don't see the need to disable the shutdown hook. However ListenerManager#stop should remove
it using Runtime#removeShutdownHook. Otherwise this will indeed cause a memory leak.

> Should be an option to disable ShutdownHook of ListenerManager
> --------------------------------------------------------------
>                 Key: AXIS2-3861
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>             Fix For: nightly
>   Original Estimate: 4h
>  Remaining Estimate: 4h
> 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()

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message