DirectoryWatcher memory leak in ActiveMQ
Environment
- Apache ActiveMQ 5.9.0.redhat-610379
Issue
Java.exeprocess 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
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
SBR
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.