IBM Support

PM17848: MEMORY LEAK WITH DEFERRED INITIALIZATION OF EJBS SET TO BE ENABLED CAUSES JAVA.LANG.OUTOFMEMORYERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • A memory leak can occur if the deferred EJB initialization
    option is enabled in WebSphere AppServer.  This option is
    documented in the Information Center article entitled,
    "Changing enterprise bean types to initialize at application
    start time using the administrative console"
    .
    which is having this JVM property set to false,
    com.ibm.websphere.ejbcontainer.initializeEJBsAtStartup
    .
       I see the EJB Cache in this snippet of the tree view.  The
    array
    2,054 array of com/ibm/ejs/util/Bucket is the EJB Cache.
    .---------------------------------------------------------
    .
    954,173,336 (90%) [528] 58 com/ibm/ejs/container/BeanMetaData
    0x797e4da0
     952,329,168 (90%) [104] 13 com/ibm/ejs/container/HomeRecord
    0x7ab5c1f0
      935,188,240 (88%) [40] 7 com/ibm/ejs/container/HomeOfHomes
    0x7be656b8
       935,188,056 (88%) [24] 2 com/ibm/ejs/util/FastHashtable
    0x7be656e0
        935,188,032 (88%) [8,232] 2,054 array of
    com/ibm/ejs/util/Bucket 0x7be656f8
         672,964,248 (63%) [24] 2 com/ibm/ejs/util/Bucket 0x7be677c8
          672,964,224 (63%) [24] 3 com/ibm/ejs/util/Element
    0x7b3d9ff0
           672,964,096 (63%) [104] 13
    com/ibm/ejs/container/HomeRecord 0x7b3d9f00
            653,340,912 (61%) [160] 19
    com/dstm/mp/mpentity/contactcenter/provider/ejb/EJSBMPProviderEn
    tityHomeBean_d50d1191 0x7dbb9d98
             653,336,408 (61%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x7dbbbcc0
              653,336,056 (61%) [32] 3
    com/ibm/ejs/util/cache/WrapperBucket 0x7c26f698
               653,336,024 (61%) [656] 160 array of
    com/ibm/ejs/container/EJSWrapperCommon 0xb16f0d10
                19,344,424 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xb2625370
                19,212,424 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x95e03fa0
                19,203,928 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x88d212d0
                19,193,024 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x905dd8d8
                19,191,216 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x85d5be18
                19,177,952 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x83248f00
                19,136,608 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x80acc830
                19,136,184 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xa791e968
                19,113,640 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x87196d58
                19,099,152 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x8e3672e8
                19,096,992 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xb6734b00
                19,061,504 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xa049f658
                19,050,160 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xa178e408
                19,005,136 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x8addd790
                19,002,336 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xb5268e18
                18,985,872 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xb314a3e0
                18,983,592 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x9ec07c88
                18,974,192 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xa2a10330
                18,973,144 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0x9371a7e8
                18,931,424 (1%) [72] 7
    com/ibm/ejs/container/EJSWrapperCommon 0xafa70e10
    There are 140 more children
    .
       The first EJB listed in the EJB cache is quite large,
         672,964,248 (63%) [24] 2 com/ibm/ejs/util/Bucket 0x7be677c8
          672,964,224 (63%) [24] 3 com/ibm/ejs/util/Element
    0x7b3d9ff0
           672,964,096 (63%) [104] 13
    com/ibm/ejs/container/HomeRecord 0x7b3d9f00
            653,340,912 (61%) [160] 19
    com/myco/mp/mpentity/contactcenter/provider/ejb/EJSBMPProviderEn
    tityHomeBean_d50d1191 0x7dbb9d98
    .
    .---------------------------------------------------------
       This view is drilling down into the first element in this
    array.
    19,212,424 (1%) [72] 7 com/ibm/ejs/container/EJSWrapperCommon
    0x95e03fa0
     19,212,192 (1%) [528] 58 com/ibm/ejs/container/BeanMetaData
    0x95d3a7d8
      19,014,144 (1%) [32] 4 com/ibm/ejs/csi/ResRefListImpl
    0x95d3ff70
       19,013,992 (1%) [32] 2 java/util/Vector 0x95d3ff90
        19,013,960 (1%) [24] 2 array of java/lang/Object 0x95d3ffb0
         19,013,936 (1%) [88] 14 com/ibm/ejs/csi/ResRefImpl
    0x95d40060
          19,013,568 (1%) [40] 3
    org/eclipse/emf/ecore/util/EObjectContainmentEList$Unsettable
    0x95d40038
           19,013,528 (1%) [56] 6
    com/ibm/ejs/models/base/bindings/commonbnd/impl/ResourceRefBindi
    ngImpl
    0x95c51e10
            17,138,200 (1%) [72] 8
    org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl
    0x96a0d898
             17,138,024 (1%) [160] 15
    org/eclipse/jst/j2ee/ejb/internal/impl/SessionImpl 0x96a0c610
              17,133,032 (1%) [96] 6
    org/eclipse/jst/j2ee/ejb/internal/impl/EJBJarImpl 0x963f6138
               10,393,664 (0%) [56] 5
    org/eclipse/jst/j2ee/ejb/internal/impl/AssemblyDescriptorImpl
    0x96afacd8
                10,106,176 (0%) [40] 4
    org/eclipse/emf/ecore/util/EObjectContainmentWithInverseEList
    0x96afad88
                 10,106,136 (0%) [24] 2 array of
    org/eclipse/jst/j2ee/ejb/MethodPermission 0x96afadb0
                  10,106,112 (0%) [56] 5
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl
    0x96afad50
                   10,105,864 (0%) [48] 5
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl$1
    0x96afaed0
                    10,105,816 (0%) [84,976] 21,240 array of
    org/eclipse/jst/j2ee/ejb/MethodElement 0x955a90d0
                     1,136 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x90a86378
                     1,048 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x8f572490
                     1,024 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x943c73d0
                     1,024 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x943cc1d8
                     1,016 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x90124828
                     1,008 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x9012f530
                     976 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x8f687510
                     968 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x9012ac40
                     936 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x9200d6b8
                     936 (0%) [64] 8
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    0x9189b818
    ...
    There are 21,220 more children                10,106,112 (0%)
    [56] 5
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl
    0x96afad50
    .
       This EJB contains an array of 21,240 elements.
    
        10,105,816 (0%) [84,976] 21,240 array of
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodPermissionImpl$
    0x96afaed01
    .
       In the objects view.  There is a high count for some
    of the object types listed in the tree view.  The third column
    is the number of objects of the type, which is the fourth
    column.
       There are 1,802,545
    org/eclipse/emf/ecore/impl/BasicEObjectImpl$EPropertiesHolderImp
    l
    .
    and
    1,737,664 org/eclipse/emf/ecore/util/EContentsEList objects.
    .
    and
    1,054,177
    org/eclipse/jst/j2ee/ejb/internal/impl/MethodElementImpl
    objects.
    .
    72,101,792 137,685,840 1,802,545
    org/eclipse/emf/ecore/impl/BasicEObject
    Impl$EPropertiesHolderImpl
    41,703,944 41,704,696 1,737,664
    org/eclipse/emf/ecore/util/EContentsELis
    t
    67,467,296 488,269,408 1,054,177
    org/eclipse/jst/j2ee/ejb/internal/impl/
    MethodElementImpl
    

Local fix

  • Set the jvm custom property com.ibm.websphere.ejbcontainer.initi
    alizeEJBsAtStartup to true
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server with applications containing large   *
    *                  numbers of Enterprise Java Beans.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Applications containing large numbers   *
    *                      of Enterprise Java Beans may            *
    *                      experience large memory consumption     *
    *                      during the deferred initialization of   *
    *                      their EJBs.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    APAR PM17848 is being closed FIN with concurrence from the
    submitting customer. The problem applies to WebSphere
    Application Server versions 6.0, 6.1, and 7.0.  The problem
    was fixed in WebSphere Application Server 8.0.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM17848

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    61I

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-07-05

  • Closed date

    2010-07-15

  • Last modified date

    2012-04-12

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

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

Fix information

Applicable component levels

  • R60A PSY

       UP

  • R60H PSY

       UP

  • R60I PSY

       UP

  • R60P PSY

       UP

  • R60S PSY

       UP

  • R60W PSY

       UP

  • R60Z PSY

       UP

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2022