You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sergey Vladimirov (JIRA)" <ji...@apache.org> on 2008/06/16 17:43:45 UTC

[jira] Created: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager

Should be an option to disable ShutdownHook of ListenerManager
--------------------------------------------------------------

                 Key: AXIS2-3861
                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
            Reporter: Sergey Vladimirov
             Fix For: nightly


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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3861) Remove ShutdownHook in ListenerManager#stop()

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Vladimirov updated AXIS2-3861:
-------------------------------------

        Fix Version/s:     (was: nightly)
    Affects Version/s: 1.4
              Summary: Remove ShutdownHook in ListenerManager#stop()  (was: Should be an option to disable ShutdownHook of ListenerManager)

Renamed to "Remove ShutdownHook in ListenerManager#stop()"

> Remove ShutdownHook in ListenerManager#stop()
> ---------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>         Attachments: patch.txt
>
>   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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606289#action_12606289 ] 

Sergey Vladimirov commented on AXIS2-3861:
------------------------------------------

Removing it from #stop is okay too

> Should be an option to disable ShutdownHook of ListenerManager
> --------------------------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3861) Remove ShutdownHook in ListenerManager#stop()

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-3861.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

Fixed (see AXIS2-3732 for more details).

> Remove ShutdownHook in ListenerManager#stop()
> ---------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: patch.txt
>
>   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.


[jira] Commented: (AXIS2-3861) Remove ShutdownHook in ListenerManager#stop()

Posted by "Mauro Molinari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662981#action_12662981 ] 

Mauro Molinari commented on AXIS2-3861:
---------------------------------------

This is a duplicate of AXIS2-3732.

Mauro.

> Remove ShutdownHook in ListenerManager#stop()
> ---------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>         Attachments: patch.txt
>
>   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.


[jira] Updated: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Vladimirov updated AXIS2-3861:
-------------------------------------

      Priority: Minor  (was: Major)
    Issue Type: Wish  (was: Bug)

Workaround:
- to override AxisServlet::init() AND ListenerManager::start()

> Should be an option to disable ShutdownHook of ListenerManager
> --------------------------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Vladimirov updated AXIS2-3861:
-------------------------------------

    Attachment: patch.txt

Please, update 1.4 branch as well

> Should be an option to disable ShutdownHook of ListenerManager
> --------------------------------------------------------------
>
>                 Key: AXIS2-3861
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3861
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Wish
>          Components: kernel
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>             Fix For: nightly
>
>         Attachments: patch.txt
>
>   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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3861) Should be an option to disable ShutdownHook of ListenerManager

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605450#action_12605450 ] 

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: https://issues.apache.org/jira/browse/AXIS2-3861
>             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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org