Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5627

HashMap Usage Leading to Extreme CPU Utilization

XMLWordPrintable

    • % %

      Significant CPU utilization and thread contention due to concurrent HashMap access. HashMap is not a thread-safe.

      # grep -B2 -A4 HashMap.put threaddump.log                                                                                                                                                                                           
      "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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "Camel (redhat-messaging) thread #22 - JmsReplyManagerTimeoutChecker[com.project.redhat.brms.message.processor.resp.project-soa-fuse1-zone4-v0197]" daemon prio=10 tid=0x00007fffd54b6800 nid=0xd561 runnable [0x00007fff4fffc000]  
         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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "Camel (redhat-messaging) thread #22 - JmsReplyManagerTimeoutChecker[com.project.redhat.brms.message.processor.resp.project-soa-fuse1-zone4-v0197]" daemon prio=10 tid=0x00007fffd54b6800 nid=0xd561 runnable [0x00007fff4fffc000]  
         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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)                                                                                                                                
      --                                                                                                                                                                                                                                  
      "Camel (redhat-messaging) thread #22 - JmsReplyManagerTimeoutChecker[com.project.redhat.brms.message.processor.resp.project-soa-fuse1-zone4-v0197]" daemon prio=10 tid=0x00007fffd54b6800 nid=0xd561 runnable [0x00007fff4fffc000]  
         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)                                                                                                               
              at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)                                                                                                                                        
              at org.apache.felix.framework.PatchAwareContent.getEntryAsStream(PatchAwareContent.java:116)
      

              janstey@redhat.com Jonathan Anstey
              rhn-support-mrobson Matt Robson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: