Re: HibernateSessionManager and background threads

2015-11-07 Thread Ilya Obshadko
Thanks a lot, that seemed to finally help - instance is now running for 5 days without OOM. On Sun, Nov 1, 2015 at 8:16 PM, Lance Java wrote: > You'll need to @Inject the PerThreadManager and call cleanupThread() in the > finally block of the task(s). > On 1 Nov 2015 14:58, "Ilya Obshadko" wrot

Re: HibernateSessionManager and background threads

2015-11-01 Thread Lance Java
You'll need to @Inject the PerThreadManager and call cleanupThread() in the finally block of the task(s). On 1 Nov 2015 14:58, "Ilya Obshadko" wrote: > I have recently noticed in my GC logs that application leaks memory after > running periodic background process which performs database operation

HibernateSessionManager and background threads

2015-11-01 Thread Ilya Obshadko
I have recently noticed in my GC logs that application leaks memory after running periodic background process which performs database operations. I'm suspicious of Hibernate not cleaning up after himself. So the question is: are there any specific techniques for using Hibernate in background proces