IBM Support

PM39346: Memory leak in Web Services SAX parser may lead to an OutOfMemoryError

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A memory leak in the Web Services SAX parser may lead to a
    java.lang.OutOfMemoryError. A tremendous growth in the number
    of com.ibm.xml.xlxp.scan.util.DataBuffer objects on the heap
    would be seen. Here is a sample from a heapdump that was
    collected during a stress test:
    
    ========================================================
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc1d8
      * com.ibm.xml.xlxp.api.util.SimpleDataBufferFactory @
    0x688f5260
        * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc208
        * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc238
        * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc268
        * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc438
        * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc468
        ...
    ========================================================
    
    When the memory leak occurs, the following stack trace or one
    similar to it will be seen in a javacore file:
    
    "WebContainer : 6" (TID:0x39EBBA00, sys_thread_t:0x383C3718,
    state:CW, native ID:0x00243027) prio=5
     at
    com/ibm/xml/xlxp/scan/util/XMLString$1.hasReferenceTo(XMLString.
    java:115(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleDataBufferFactory$DataBufferRefe
    rrerQueue.isReferenced(SimpleDataBufferFactory.java:76(Compiled
    Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleDataBufferFactory.reclaimBuffers
    (SimpleDataBufferFactory.java:235(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/encoding/ByteStreamDataSource.load(Byt
    eStreamDataSource.java:68(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/util/ParsedEntity.load(ParsedEntity.java:1
    75(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/util/SymbolTable.checkNextBuffer(SymbolTab
    le.java(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/util/SymbolTable.scanQNameBuffered2(Symbol
    Table.java:2192(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/util/SymbolTable.scanQNameBuffered(SymbolT
    able.java:1679(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleScannerHelper.scanQName(SimpleSc
    annerHelper.java:909(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/DocumentEntityScanner.scanStartElementBuff
    ered(DocumentEntityScanner.java:2302(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleScannerHelper.scanStartElementBu
    ffered(SimpleScannerHelper.java:931(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/DocumentEntityScanner.stateBufferedStartEl
    ement(DocumentEntityScanner.java:579(Compiled Code))
     at
    com/ibm/xml/xlxp/scan/DocumentEntityScanner.produceEvent(Documen
    tEntityScanner.java:646(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleScannerHelper.produceEvents(Simp
    leScannerHelper.java:332(Compiled Code))
     at
    com/ibm/xml/xlxp/api/util/SimpleScannerHelper.parseDocumentEntit
    y(SimpleScannerHelper.java:328(Compiled Code))
     at
    com/ibm/xml/xlxp/api/was/WSXMLReader.parseEvents(WSXMLReader.jav
    a:112(Compiled Code))
     at
    com/ibm/xml/xlxp/api/sax/impl/SAX2ParserBase.parseEntity(SAX2Par
    serBase.java:1335(Compiled Code))
     at
    com/ibm/xml/xlxp/api/sax/impl/SAX2ParserBase.parse(SAX2ParserBas
    e.java:1374(Compiled Code))
     at javax/xml/parsers/SAXParser.parse(Bytecode PC:55(Compiled
    Code))
     at
    com/ibm/ws/webservices/engine/utils/WebServicesParser.parse(WebS
    ervicesParser.java:361(Compiled Code))
     at
    com/ibm/ws/webservices/engine/encoding/DeserializationContextImp
    l.parse(DeserializationContextImpl.java:295(Compiled Code))
     ...
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server V6.1       *
    *                  users of the Feature Pack for Web Services  *
    *                  JAX-RPC client applications.                *
    ****************************************************************
    * PROBLEM DESCRIPTION: A memory leak in the Web Services SAX   *
    *                      parser may lead to an OutOfMemoryError  *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack containing this APAR.    *
    ****************************************************************
    A memory leak in the Web Services SAX parser may lead to a
    java.lang.OutOfMemoryError. A tremendous growth in the number
    of com.ibm.xml.xlxp.scan.util.DataBuffer objects on the heap
    would be seen. Here is a sample from a heapdump that was
    collected during a stress test:
    ========================================================
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc1d8
    * com.ibm.xml.xlxp.api.util.SimpleDataBufferFactory @
    0x688f5260
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc208
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc238
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc268
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc438
    * com.ibm.xml.xlxp.scan.util.DataBuffer @ 0x637fc468
    ...
    ========================================================
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM39346

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-17

  • Closed date

    2011-08-08

  • Last modified date

    2011-08-08

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 October 2021