IBM Support

Poor performance when processing XML schemas with high values of maxOccurs

Troubleshooting


Problem

IBM® Rational® Application Developer v7.0 may remain unresponsive with 100% CPU usage when opening XML documents. These documents are instances of XML schemas with a maxOccurs definition for an element.

Symptom

The problem can be identified by examining the following:

  • The XML schema contains an XML element definition with a high value for minOccurs or maxOccurs:


    <element name="request">
    <complexType>
    <sequence>
    <element name="foo" type="string" maxOccurs="250000"/>
    </sequence>
    </complexType>
    </element>

  • During the 100% CPU usage one job is running with the following call stack found in javacore.txt


    "Worker-3" (TID:0x3CC36500, sys_thread_t:0x394A5988, state:CW, native ID:0x00000F18) prio=5
    at org/apache/xerces/impl/dtd/models/CMStateSet.<init>(Bytecode PC:80(Compiled Code))
    at org/apache/xerces/impl/xs/models/XSDFACM.buildDFA(Bytecode PC:102)
    at org/apache/xerces/impl/xs/models/XSDFACM.<init>(Bytecode PC:71)
    at org/apache/xerces/impl/xs/models/CMBuilder.createDFACM(Bytecode PC:31)
    at org/apache/xerces/impl/xs/models/CMBuilder.getContentModel(Bytecode PC:70)
    at org/apache/xerces/impl/xs/XSComplexTypeDecl.getContentModel(Bytecode PC:10)
    at org/apache/xerces/impl/xs/XMLSchemaValidator.handleStartElement(Bytecode PC:1177)
    at org/apache/xerces/impl/xs/XMLSchemaValidator.startElement(Bytecode PC:4)
    at org/apache/xerces/impl/XMLNamespaceBinder.handleStartElement(Bytecode PC:790)
    at org/apache/xerces/impl/XMLNamespaceBinder.startElement(Bytecode PC:12)
    at org/apache/xerces/impl/dtd/XMLDTDValidator.startElement(Bytecode PC:24)
    at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement(Bytecode:311(Compiled Code))
    at org/apache/xerces/impl/XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Bytecode PC:100)
    at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Bytecode PC:1017(Compiled Code))
    at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Bytecode PC:26)
    at org/apache/xerces/parsers/DTDConfiguration.parse(Bytecode PC:62)
    at org/apache/xerces/parsers/DTDConfiguration.parse(Bytecode PC:29)
    at org/apache/xerces/parsers/XMLParser.parse(Bytecode PC:11)
    at org/apache/xerces/parsers/AbstractSAXParser.parse(Bytecode PC:43)
    at org/eclipse/wst/xml/core/internal/validation/XMLValidator.validate(XMLValidator.java:276)

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"XML Development","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"XML Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6","Edition":"All Editions","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
10 September 2020

UID

swg21296034