Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1375

OutOfMemory runs in container environment in a long stress run

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: