cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Re: cayenne tomcat memory management
Date Mon, 19 Oct 2009 13:53:28 GMT
Hi,

What can produce memory leaks in Cayenne3 is shared query cache. Are you
using it? Anyways, the best option will be to try profiling your application
to see what produces leaks.
Here's an example of getThreadObjectContext():
http://cayenne.apache.org/doc/web-applications.html

Hope that helps,

2009/10/17 Emanuele Maiarelli <emanuele@mengozzi.com>

> I'm using cayenne 3 with tomcat, and im getting context by this way
> ..
> DataContext dc= ServletUtil.getSessionContext(sess)
> ...
> using httpsessioncontext.
>
> To ensure session to be closed i implemented logout from session  by
> calling
>
> ...
>  <%session.invalidate();%>
> ...
>
>
> But after many sessions opened, i step into memory lacks even if
> application retrive few data from database.
>
> Any hint?
>
> PS: i tried to use  getThreadObjectContext but was unable to do it. Any
> example about using ThreadObjectContext?
>
>
>
>
>


-- 
Andrey

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