IBM Support

PM91196: OUTOFMEMORYERROR CAUSED BY MEMORY LEAK IN CACHING THE WRAPPER FOR URIS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Caching the wrapper for the URI is a performance enhancement.
    It will save the server from repeatedly process and create the
    necessary resources when serving the same request/URI several
    times.
    However, when an application creates unique requests for the
    same static content, excess memory may be consumed.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: An OutOfMemoryError (OOM) can occur     *
    *                      when requesting static content.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Under a very specific design, an application can cause the
    server to run out of memory when serving a lot of unique
    static content. The heapdump shows a large amount of memory is
    held by:
    com.ibm.ws.webcontainer.webapp.WebAppImpl
    com.ibm.wsspi.webcontainer.util.URIMapper
    com.ibm.wsspi.webcontainer.util.URIMatcher
    com.ibm.ws.util.ClauseNode
    com.ibm.ws.util.ClauseTable
    The memory is occupied by the caching of the URI of the static
    content.
    This is mainly for performance reason. When an application is
    designed such that every request for the same static content
    is unique, it consumes more memory to cache the requests.
    

Problem conclusion

  • The WebContainer code was modified to accommodate those
    special applications by disabling static caching of the URI.
    
    A new WebContainer customer property needs to be set to enable
    the behavior provided by this APAR:
    
    com.ibm.ws.webcontainer.disableStaticMappingCache
    
    The following value can be specified for this property:
    
        * - disable static caching for all deployed applications
    
        A comma delimited list of specific applications that will
    have the disable static caching
    
    The following examples illustrate how to specify these two
    settings:
    
    com.ibm.ws.webcontainer.disableStaticMappingCache=*
    
    com.ibm.ws.webcontainer.disableStaticMappingCache=SpecialApp,Rar
    eApp
    
    Alternatively, a context parameter can be set in the web.xml
    to disable static caching for the application.
    
    <context-param>
      <param-name>
    com.ibm.ws.webcontainer.DISABLE_STATIC_MAPPING_CACHE</param-name
    >
      <param-value>true</param-value>
    </context-param>
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.1. Please refer to the Recommended Updates page
    for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM91196

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-17

  • Closed date

    2013-08-13

  • Last modified date

    2013-08-13

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

    PM84305

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

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
12 January 2022