openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1375) OutOfMemory runs in container environment in a long stress run
Date Wed, 04 Nov 2009 21:57:32 GMT
OutOfMemory runs in container environment in a long stress run
--------------------------------------------------------------

                 Key: OPENJPA-1375
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1375
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.0.0-M3
            Reporter: Albert Lee
            Assignee: Albert Lee
             Fix For: 2.0.0


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message