IBM Support

PI26941: INSTALLING AND UNINSTALLING AN APPLICATION MANY TIMES WILL CAUSE OUTOFMEMORY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Installing/Uninstalling an app many times will cause
    OutOfMemory.
    
    Deploying an application multiple times to Liberty profile
    seems to eventually run the server out of memory.
    
    To replicate the situation:
    
    1. Start Liberty profile server
    2. Copy application war into dropins folder
    3. Watch log and wait for application to start
    4. Access the application via web browser in order to have
    liberty fully start the app.
    5. Delete the war from the dropins folder
    6. Watch log files and wait for application to completely
    stop/uninstall
    7. Repeat steps 2-6 until the logs show a
    java.lang.OutOfMemoryException
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Repeatedly redeploying an application   *
    *                      can cause  OutOfMemory exceptions       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A memory leak was occuring because a cached object reference was
    improperly being saved.  This caused Liberty profile memory
    usage to grow unecessarily when applications were reinstalled
    many times in a row.
    

Problem conclusion

  • All cached references to the given object are now properly
    released when the object is no longer required.  This allows
    Java garbage collection to reclaim used heap space and
    eliminates out of memory conditions for this situation.
    
    The
    fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.5.  Please refer to the Recommended Updates page for
    delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Restart the WebSphere Liberty application server if Java heap
    space is growing after application redeploy.
    

Comments

APAR Information

  • APAR number

    PI26941

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-02

  • Closed date

    2014-11-12

  • Last modified date

    2014-11-12

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

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

Document Information

Modified date:
28 April 2022