Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3861

Remove ShutdownHook in ListenerManager#stop()

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • kernel
    • None

    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

        1. patch.txt
          1 kB
          Sergey Vladimirov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bsp Sergey Vladimirov
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified