openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <>
Subject Re: What is DetachedStateManager? Memory Leak?
Date Mon, 21 Jun 2010 15:39:01 GMT
First off, take a quick read through the user manual [1] to understand what
the DetachedState is all about. Second, you said that you could see these
objects sticking around for a while...  were gc'd at some point? Once
SLAEventBean is gc'd the DetachedStateManager objects will go away.



On Fri, Jun 18, 2010 at 7:32 PM, Angelo K. Huang <> wrote:

> We used openjpa 1.2.1 in our application that run in Tomcat.  One stress
> test
> I am running is to request a large number of results back. The query part
> is
> fine. However, when I dumped the memroy using jmap and jhat, I still could
> see lots of objects stayed in the memory and referenced by
> DetachedStateManager after a while. The entityManager is closed after the
> queries. I am thinking those objects might not be garbage collected by JVM
> and cause memory leak.
> 21001 instances of class org.apache.oozie.SLAEventBean
> 21000 instances of class org.apache.openjpa.kernel.DetachedStateManager
> --
> View this message in context:
> Sent from the OpenJPA Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message