IBM Support

PI18259: OUT OF MEMORY ERROR FOR MATCH PATTERN WITH MANY STEPS AND PREDICATES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An OutOfMemoryError occurs when compiling XSL stylsheets with
    a template match pattern that contains many steps and
    predicates.
    

Local fix

  • text fix was provided and verified
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0 and V8.5 compiling XSL          *
    *                  stylsheets with template match patterns     *
    ****************************************************************
    * PROBLEM DESCRIPTION: OutOfMemoryError when compiling XSL     *
    *                      stylsheets with template match pattern  *
    *                      that contains many steps and            *
    *                      predicates                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A large amount of memory was consumed when compiling template
    match patterns with lots of steps and predicates.
    For example:
    <xsl:template match="*[local-name()='AAA']/*[local-
    name()='BBB']/*[local-name()='CCC']/*
    [local-name()='DDD']/*[local-name()='EEE']/*[local-
    name()='FFF']/*[local-name()='GGG']/*
    [local-name()='HHH']/*[local-name()='III']">
    A n! algorithm was used to rewrite the predicates. This was the
    root cause for the high memory usage. As the number of
    predicates and steps increased, the memory usage also
    increased, eventually causing the OutOfMemoryError.
    

Problem conclusion

  • The n! algorithm was replaced by a much simpler but more
    efficient algorithm. The memory usage is decreased and the
    OutOfMemoryError is avoided.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.10 and 8.5.5.3.  Please refer to the
    Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Rewriting the match pattern (if possible) to avoid using
    predicates works around the problem. The above match
    pattern could be re-written as:
    
    <xsl:template
    match="*:AAA/*:BBB/*:CCC/*:DDD/*:EEE/*:FFF/*:GGG/*:HHH/*:III">
    

Comments

APAR Information

  • APAR number

    PI18259

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-20

  • Closed date

    2014-07-10

  • Last modified date

    2014-07-10

  • 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

  • R800 PSY

       UP

  • R850 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":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 April 2022