DirectoryWatcher memory leak in ActiveMQ
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]
Environment
- Apache ActiveMQ 5.9.0.redhat-610379
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.