IBM Support

PK50133: OUTOFMEMORY IN JSP COMPONENTS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Having a large number of JSPs in a web application that require
    runtime compilation can lead to OutOfMemory problems because of
    the large amount of JSPExtensionClassLoader objects needed.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: IBM WebSphere Application Server Version 6.1 *
    *                 users of applications with a large number of *
    *                 Java Server Pages (JSP).                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: An OutOfMemoryException can occur if    *
    *                      an application contains a large         *
    *                      number of JSP files.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The WebSphere Application Server creates a
    JSPExtensionClassLoader object for each JSP in an application
    which can result in these objects taking up a lot of native
    memory. This can lead to an OutOfMemoryException.
    The number of JSPs in an application that can lead to this
    OutOfMemoryException will vary greatly depending on the size
    of the JSPExtensionClassLoader objects and the machine
    configuration. For example, the environment in which this
    problem was reported contained approximately 40,000 JSP
    files in their application on a server that had 16 GB of
    physical memory. The OutOfMemoryException occurred with
    approximately 2,000 JSPExtensionClassLoader objects loaded in
    memory.
    

Problem conclusion

  • The WebContainer code was modified to allow a limit to be
    specified on the number of JSPExtensionClassLoader objects to
    be held in memory. Also, a list of JSP files to be excluded
    from being unloaded can be specified.
    The WebContainer will not unload a forwarded or included JSP.
    Two new JSP attributes were added to allow for this setting.
     1. jspClassLoaderLimit - the value is an int which determines
        how many JSPExtensionClassLoader objects to keep loaded.
        <jspAttributes xmi:id="JSPAttribute_1"
         name="jspClassLoaderLimit" value="1500"/>
    
     2. jspClassLoaderExclusionList - The value is a comma delimited
        list of JSPs not to be unloaded regardless of the limit.
        <jspAttributes xmi:id="JSPAttribute_2"
        name="jspClassLoaderExclusionList"
        value="/test/HelloHTML2.jsp,/HelloHTML4.jsp"/>
    
    The fix for this APAR is currently targeted for inclusion in
    fixpack 6.1.0.15. 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

    PK50133

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    60A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-07-31

  • Closed date

    2007-10-09

  • Last modified date

    2007-10-09

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

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

Modules/Macros

  • JSP
    

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R60A PSN

       UP

  • R60H PSN

       UP

  • R60I PSN

       UP

  • R60P PSN

       UP

  • R60S PSN

       UP

  • R60W PSN

       UP

  • R60Z PSN

       UP

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

Document Information

Modified date:
28 December 2021