DirectoryWatcher memory leak in ActiveMQ

Solution Unverified - Updated

Environment

  • Apache ActiveMQ 5.9.0.redhat-610379

Issue

  • Java.exe process memory growth, eventually leads to high CPU utilization.
  • The following exception in amq.log:
ERROR | S\amq\bin\..\etc | fileinstall                      | ?                                   ? | 6 - org.apache.felix.fileinstall - 3.3.11.redhat-610379 | In main loop, we have serious trouble
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Unknown Source)[:1.7.0_67]
        at java.util.ArrayList.grow(Unknown Source)[:1.7.0_67]
        at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)[:1.7.0_67]
        at java.util.ArrayList.ensureCapacityInternal(Unknown Source)[:1.7.0_67]
        at java.util.ArrayList.add(Unknown Source)[:1.7.0_67]
        at org.apache.felix.fileinstall.internal.FileInstall.getListeners(FileInstall.java:301)[6:org.apache.felix.fileinstall:3.3.11.redhat-610379]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:340)[6:org.apache.felix.fileinstall:3.3.11.redhat-610379]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[6:org.apache.felix.fileinstall:3.3.11.redhat-610379]

Resolution

Apply Rollup 2:
This content is not included.https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=35703&product=jboss.fuse&version=6.1.0&downloadType=securityPatches

Root Cause

Rapid memory leak of about 2 meg a second associated with one of the file scanners:
Content from issues.jboss.org is not included.https://issues.jboss.org/browse/ENTMQ-622

Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.