High CPU and GC spikes from JDOM 2 TextBuffer.append Calls

Solution Verified - Updated -

Issue

  • We see very high CPU and increased GC activity when calls are made to TextBuffer.append in the jdom library bundled in our application:
"ajp-localhost/127.0.0.1:8009-11" daemon prio=10 tid=0x00007fee6c021000 nid=0x2f2b runnable [0x00007fee7d555000]
   java.lang.Thread.State: RUNNABLE
    at org.jdom2.internal.ArrayCopy.copyOf(ArrayCopy.java:113)
    at org.jdom2.input.sax.TextBuffer.append(TextBuffer.java:103)
    at org.jdom2.input.sax.SAXHandler.characters(SAXHandler.java:763)

Environment

  • JBoss Enterprise Application Platform (EAP) 6
  • JDOM 2.0.0 - 2.0.4

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.