JBoss EAP has heap growth in com.sun.org.apache.xerces.internal.dom.DocumentImpl from CXF WebService processing after upgrading to EAP 8

Solution Verified - Updated -

Issue

  • After upgrading from EAP 7 to EAP 8, we see large heap growth in a com.sun.org.apache.xerces.internal.dom.DocumentImpl object's nodeUserData map after many CXF web service client calls:
Class Name                                                      | Shallow Heap | Retained Heap | Percentage
------------------------------------------------------------------------------------------------------------
com.sun.org.apache.xerces.internal.dom.DocumentImpl @ 0xe25d4778|          136 |   158,840,920 |     26.33%
'- nodeUserData java.util.HashMap @ 0xe25d4870                  |           48 |   158,840,760 |     26.32%
   '- table java.util.HashMap$Node[1048576] @ 0xfe700000        |    4,194,320 |   158,840,712 |     26.32%
  • The heap growth in this map is from many com.sun.org.apache.xerces.internal.dom.TextImpl objects with similar repeating string values:
Class Name                                     | Objects | Shallow Heap | Retained Heap
----------------------------------------------------------------------------------------
com.sun.org.apache.xerces.internal.dom.TextImpl| 540,569 |   17,298,208 | >= 38,351,888
----------------------------------------------------------------------------------------

Environment

  • JBoss Enterprise Application Platform (EAP) 8.x

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