Slow application performance with threads all waiting on a shared Vector

Solution Unverified - Updated -

Issue

Our application is running very slowly (i.e. poor performance), with many threads suck like this when viewing thread dumps:

"ajp-/10.1.2.40:8009-750" daemon prio=10 tid=0x000000004100a000 nid=0x5fb5 waiting for monitor entry [0x00007ff39881b000]
   java.lang.Thread.State: BLOCKED (on object monitor)
    at java.util.Vector.size(Vector.java:268)
    - waiting to lock <0x0000000405c469b8> (a java.util.Vector)
    at org.apache.xerces.impl.xpath.regex.Op$UnionOp.size(Unknown Source)
    at org.apache.xerces.impl.xpath.regex.RegularExpression.matchString(Unknown Source)
        ...
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
    at javax.xml.validation.Validator.validate(Validator.java:127)
        ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.