OpenJPA
  1. OpenJPA
  2. OPENJPA-1375

OutOfMemory runs in container environment in a long stress run

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0-M3
    • Fix Version/s: 1.3.0, 2.0.0-beta
    • Component/s: kernel
    • Labels:
      None

      Description

      Long stress run in the app server/container environment caused a OutOfMemoery exception with a heap dump that showed the following:

      FetchConfigurationImpl$ConfigurationState
      + WsJpaFetchConfigurationImpl
      + Array of Object
      + IdentityHashMap
      + EntityManagerImpl

      What happened is the container pooled the entity manager and clear the context when a transaction is completed. However the IdentityHashMap in EntityManagerImpl, which maps the fetch configuration to fetch plan, is not being flush/clear. This caused the growth of the IdentityHashMap and eventually the OOM in a long run.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 17h 52m 1 Albert Lee 06/Nov/09 15:48
        Resolved Resolved Closed Closed
        13s 1 Albert Lee 06/Nov/09 15:48
        Donald Woods made changes -
        Fix Version/s 2.0.0-beta [ 12314149 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Albert Lee made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Albert Lee made changes -
        Field Original Value New Value
        Fix Version/s 1.3.0 [ 12313326 ]
        Affects Version/s 1.3.0 [ 12313326 ]
        Albert Lee created issue -

          People

          • Assignee:
            Albert Lee
            Reporter:
            Albert Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development