Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.6.2, 2.0-M3
    • camel-core, jmx
    • None
    • WinXP, Java 1.6

    Description

      There seems to be a memory leak if you are using recipientList and JMX enabled. The problem is that endpoint MBean name computed by using hashCode, if there is lot of different endpoints (created on runtime) every new endpoint will create a new MBean instance.
      Also in recipientList every entry will create new endpoint.
      In example if we have 3 urls ;
      http://host/index?id=1
      http://host/index?id=2
      http://host/index?id=3
      Camel will add 3 different MBeans entry to JMX. As url parameters are normally unique then camel will end up with creating thousands of endpoint entries. But every MBean takes memory.

      Attachments

        1. JConsole.jpg
          231 kB
          Andres
        2. MemLeak.java
          1 kB
          Andres
        3. Picture 1.png
          26 kB
          Claus Ibsen

        Activity

          People

            davsclaus Claus Ibsen
            kalamaks Andres
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: