XMPP connections leak memory

XMLWordPrintable

      Over the last couple of weeks, we had to restart JBAC a couple of times because it was running out of heap memory and stuck doing full GCs. The last outage showed that the XMPP connections were sitting on around 1GB on memory. Despite the BambooSmackClient just used one connection, the other 531 were still referenced by the other 531 InBandBytestreamManager instances and thus couldn't be cleaned up by the garbage collector (see the size of 532 of the manager map).

      I've also attached the memory usage statistics of CBAC which doesn't use the IM server integration (/admin/instantmessagingserver/viewInstantMessagingServer.action). It uses much less memory.

        1. XMPPConnection memory usage.png
          122 kB
          Martin Meinhold
        2. JBAC-Heap-PSOldGen-month.png
          47 kB
          Martin Meinhold
        3. CBAC-Heap-PSOldGen-month.png
          56 kB
          Martin Meinhold
        4. InBandByteStreamManager managers map.png
          182 kB
          Martin Meinhold

            Assignee:
            Unassigned
            Reporter:
            Martin Meinhold
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: