High CPU due to unsafe HashMap access in org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile

Solution Unverified - Updated

Environment

  • JBoss Fuse 6.1.0

Issue

  • We see high CPU with many threads in the following code:
"Camel (redhat-messaging) thread #23 - QueueReplyManager[com.project.redhat.brms.message.processor.resp.project-soa-fuse1-zone4-v0197]" daemon prio=10 tid=0x00007fffd54de000 nid=0xd564 runnable [0x00007fff4fcfa000]
   java.lang.Thread.State: RUNNABLE
        at java.util.HashMap.put(HashMap.java:494)
        at java.util.HashSet.add(HashSet.java:217)
        at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.getInputStream(WeakZipFileFactory.java:276)

Resolution

  • Update to Fuse 6.1 R4P3 or later

Root Cause

Diagnostic Steps

Product(s)
Components
Category
Tags

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.