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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content