IBM Support

JR50313: MEMORY LEAK WHEN CUSTOMERS USE POLICY SET IN WEB SERVICE WHICH CAN CAUSE java.lang.OutOfMemoryError

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When you use an inbound web service with policy set settings,
    a policy set workspace is created for every inbound request and
    is stored in memory without being released after use. This
    causes the memory to keep on increasing and leads to a
    java.lang.OutOfMemoryError.
    
    
    .
       The java stack of the creation of the workspace is below;
    this is produced by this trace event
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl=all
    .
    [2/15/15 13:38:22:521 EST] 0000069b WorkSpaceMana 3   Call stack
     info of createWorkSpace(prop), workspace id
    anonymous1424025502520:
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl.getCallStack(W
    orkSpaceManagerImpl.java:595)
    
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl.createWorkSpac
    e(WorkSpaceManagerImpl.java:150)
    
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl.getWorkSpace(W
    orkSpaceManagerImpl.java:306)
    
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl.getWorkSpace(W
    orkSpaceManagerImpl.java:243)
    
    com.ibm.ws.sm.workspace.impl.WorkSpaceManagerImpl.getWorkSpace(W
    orkSpaceManagerImpl.java:232)
    
    com.ibm.ws.policyset.admin.commands.util.FS(CommonWorkSpaceHelpe
    r.java:111)
    
    com.ibm.ws.policyset.admin.commands.util.PolicyTypeWorkSpaceHelp
    er.listPolicyTypesForNamedBindingFile(PolicyTypeWorkSpaceHelper.
    java:317)
    
    com.ibm.ws.policyset.admin.commands.ListPolicyTypes.findPolicyTy
    pesForBindingFiles(ListPolicyTypes.java:342)
    
    com.ibm.ws.policyset.admin.commands.ListPolicyTypes.execute(List
    PolicyTypes.java:301)
    
    com.ibm.bpm.server.webservice.jaxws.policyset.BPMPolicySetConfig
    $1.run(BPMPolicySetConfig.java:107)
    
    com.ibm.bpm.server.webservice.jaxws.policyset.BPMPolicySetConfig
    $1.run(BPMPolicySetConfig.java:95)
    
    com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManager
    Impl.java:5474)
    
    com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextM
    anagerImpl.java:5600)
    
    com.ibm.bpm.server.webservice.jaxws.policyset.BPMPolicySetConfig
    .listBindingTypes(BPMPolicySetConfig.java:94)
    
    com.ibm.bpm.server.webservice.jaxws.policyset.BPMPolicySetConfig
    .getPSC(BPMPolicySetConfig.java:203)
    
    com.ibm.bpm.server.webservices.WebServiceEndpointMgr.attachPolic
    ySet(WebServiceEndpointMgr.java:678)
    
    
       The heapdump when analyzed shows that the leak suspect is
    
    1,747,345,976 (79.76%) [32] 58 class
    com/ibm/ws/management/configservice/WorkspaceHelper 0x1d9e048
    |- 1,745,329,304 (79.67%) [32] 13 class
    com/ibm/ws/sm/workspace/WorkSpaceManagerFactory 0x1d9e1c0
       |- 1,745,328,376 (79.67%) [40] 3
    com/ibm/ws/sm/workspace/impl/WorkSpaceManagerImpl 0x44d91f0
          |- 1,745,328,328 (79.67%) [16] 2
    java/util/Collections$SynchronizedMap 0x4d17390
             |- 1,745,328,312 (79.67%) [48] 1 java/util/HashMap
    0x4d173a0
                |- 1,745,328,264 (79.67%) [32,784] 3,824 array of
    java/util/HashMap$Entry 0x5870d3d8
                   |- 1,900,144 (0.09%) [24] 3
    java/util/HashMap$Entry 0x807e64b8
                   |  |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x75dddc48
                   |  |- 316,544 (0.01%) [88] 14
    com/ibm/ws/sm/workspace/impl/WorkSpaceImpl 0x807e6260
                   |  |- 112 (0%) [24] 1 java/lang/String 0x807e2a80
                   |- 1,583,528 (0.07%) [24] 3
    java/util/HashMap$Entry 0x6b6345b8
                   |  |- 1,266,848 (0.06%) [24] 3
    java/util/HashMap$Entry 0x36dbb4e0
                   |  |- 316,544 (0.01%) [88] 14
    com/ibm/ws/sm/workspace/impl/WorkSpaceImpl 0x6b634990
                   |  |- 112 (0%) [24] 1 java/lang/String 0x6b634978
                   |- 1,583,528 (0.07%) [24] 3
    java/util/HashMap$Entry 0x7ca07aa0
                   |- 1,583,528 (0.07%) [24] 3
    java/util/HashMap$Entry 0x361c7198
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x66107d18
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x73d6cb50
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x7be4ad68
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x59567ce8
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x7e4a6310
                   |- 1,583,464 (0.07%) [24] 3
    java/util/HashMap$Entry 0x7f040150
                   |- 1,583,400 (0.07%) [24] 3
    java/util/HashMap$Entry 0x67f66c98
                   |- 1,583,400 (0.07%) [24] 3
    java/util/HashMap$Entry 0x72fc40b0
                   |- 1,583,400 (0.07%) [24] 3
    java/util/HashMap$Entry 0x7f88f590
                   |- 1,266,888 (0.06%) [24] 3
    java/util/HashMap$Entry 0x6fb43b00
                   |- 1,266,848 (0.06%) [24] 3
    java/util/HashMap$Entry 0x75157468
                   |- 1,266,848 (0.06%) [24] 3
    java/util/HashMap$Entry 0x6bac5260
                   |- 1,266,848 (0.06%) [24] 3
    java/util/HashMap$Entry 0x6334d108
                   |- 1,266,848 (0.06%) [24] 3
    java/util/HashMap$Entry 0x5cb0a2c0
                   |- 1,266,824 (0.06%) [24] 3
    java/util/HashMap$Entry 0x1eed5990
                   |- 1,266,784 (0.06%) [24] 3
    java/util/HashMap$Entry 0x4f0a5620
                   |- There are 3,804 more children
    

Local fix

  • n.a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM Business Process Manager (BPM)          *
    *                  Advanced                                    *
    *                  IBM BPM Standard                            *
    *                  IBM BPM Express                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: When you use an inbound web service     *
    *                      with policy set settings,  a policy     *
    *                      set workspace is created for every      *
    *                      inbound request and is stored in        *
    *                      memory without being released after     *
    *                      use. This causes the memory to keep on  *
    *                      increasing and leads to an              *
    *                      OutOfMemory exception.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A policy set workspace is needed for loading the policy set
    settings. When an inbound request message reaches an inbound
    web service, a policy set workspace is created to load policy
    set data that is configured for the inbound web service. The
    workspace is not released automatically after the request is
    completed.
    

Problem conclusion

  • On Fix Central (http://www.ibm.com/support/fixcentral), search
    for JR50313:
    1. Select Business Process Manager with your edition from the
    product selector, the installed version to the fix pack level,
    and your platform, and then click Continue.
    2. Select APAR or SPR, enter JR50313, and click Continue.
    
    When you download fix packages, ensure that you also download
    the readme file for each fix. Review each readme file for
    additional installation instructions and information about the
    fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR50313

  • Reported component name

    BPM STANDARD

  • Reported component ID

    5725C9500

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-22

  • Closed date

    2014-06-19

  • Last modified date

    2015-02-18

  • 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

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021