IV04676: OOM MAY OCCUR WHEN AN XML PARSER IS REUSED TO PARSE DOCUMENTS CO NTAINING MOSTLY UNIQUE XML NAMES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.OutOfMemoryError
    .
    Stack Trace: N/A
    .
    A heapdump produced when this issue occurs will contain a large
    number of instances of org.apache.xerces.util.SymbolTable$Entry.
    

Local fix

  • Create a new XML parser for each usage or cache XML parser
    instances with SoftReferences to allow the garbage collector to
    reclaim them if they grow too large.
    

Problem summary

  • The XML parser's (default) internal symbol table can grow
    without bound which may lead to an OutOfMemoryError if the XML
    names it processes are mostly always unique.
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR13
    .
    Provided an alternate parser configuration which uses a memory
    sensitive SymbolTable that can handle usage scenarios where the
    names in the XML documents being parsed are mostly unique. The
    internalized strings stored in this SymbolTable are softly
    reachable and may be cleared by the garbage collector in
    response to memory demand.  This fix can be enabled by setting
    the system property:
    -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache
    .xerces.parsers.SoftReferenceSymbolTableConfiguration.
    .
    To obtain the fix:
    Install build 20110825 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV04676

  • Reported component name

    JAVA 5 XML/XSL

  • Reported component ID

    620500126

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-10

  • Closed date

    2011-09-03

  • Last modified date

    2011-09-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA 5 XML/XSL

  • Fixed component ID

    620500126

Applicable component levels

  • R500 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
XML

Software version:

5.0

Reference #:

IV04676

Modified date:

2011-09-03

Translate my page

Machine Translation

Content navigation