High cpu in beanutils WeakHashMap
Issue
- We see high CPU usage in several threads accessing a WeakHashMap in
org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod:
"http-mrkcrsbtvlpr01%2F172.25.70.81-8200-206" daemon prio=10 tid=0x00007fbac8275800 nid=0x4865 runnable [0x00007fba97159000]
java.lang.Thread.State: RUNNABLE
at java.util.WeakHashMap.get(WeakHashMap.java:470)
at org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:530)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:217)
at org.apache.commons.digester.Rule.end(Rule.java:253)
Environment
- JBoss Enterprise Application Platform (EAP)
- Apache Commons Beanutils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
