High CPU and GC spikes from JDOM 2 TextBuffer.append Calls
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.