IBM Support

Runtime Utilities face Large XML Issue - "Found a document with more than one million nodes"

Troubleshooting


Problem

Runtime Utilities face Large XML Issue - "Found a document with more than one million nodes"

Symptom

The Runtime Utilities such as CDT, Agent and Integration Server face slowness, continuous FULL GCs or Out of Memory error.
The symptoms could be:
CDT throws "Found a document with more than one million nodes." error and ends with out of memory.
An Integration Server facing slowness and log file growing drastically (> 40GB). It could also show continuous FULL GCs with large GC times.
Whenever Sterling Application encounters a XML with more than 1 million nodes, it writes a warning message and the offending XML to the error console (system.err). It attempts to serialize the XML. This causes an extreme slowdown or in some cases an Out of Memory.
Error Message
"Found a document with more than one million nodes."

Resolving The Problem

The application prints the XML document even if the document contains more than a million nodes. This is fixed in 8.0-Hf50.

Description:

A new property - yantra.document.suppress.huge.doc.alerts has been included in the yfs.properties file. A user can override the same property in the customer_overrides.properties file with the value of the yfs.yantra.document.suppress.huge.doc.alerts property set to either true or false.
If the value of this property is set as true, the system will not print the document, and instead display the warning message: "Please disable/set yantra.document.suppress.huge.doc.alerts to N/False to print the offending document with more than one million nodes".
If set to false, the application will retain the default behavior.

Note that a single document with million nodes is a very big performance overhead on the system. One can bypass printing such a huge document with the fix provided. However, a clean and complete solution would be to re-design the component that generates such a big XML to pass smaller chunks through the system/application.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX6905

Document Information

Modified date:
16 June 2018

UID

swg21555301