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

OutOfMemory runs in container environment in a long stress run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0-M3
    • 1.3.0, 2.0.0-beta
    • kernel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: