Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-94

Memory leak in remoting-jmx

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.1.3.Final
    • None

    Description

      In RHQ plugin We're experiencing a memory leak when we talk to EAP over remoting-jmx. Leak is very notable once we restart our plugin container (each plugin has in it's own classloader) Classes owned by RHQ Server plugin don't get GCed.

      I am able to reproduce mem leak without RHQ agent and plugin infrastructure repeating following steps:

      1. start new thread
      2. assign URL classloader to this thread (point it to jboss-client.jar)
      3. connect & disconnect to jmx-remoting endpoint

      In this test no classes don't get GCed which after serveral iterations ends up in OOM.

      My test/example is here https://github.com/lzoubek/remotingjmx-leak/blob/master/src/main/java/org/jboss/remotingjmx/memleak/test/Main.java

      I am not sure if memleak is in remoting-jmx or some other underlying stuff.

      I thought https://issues.jboss.org/browse/REM3-200 was related, but workaround mentioned does not help.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lzoubek Libor Zoubek (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: