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" <ilya.obsha...@gmail.com> wrote:

> 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
> processes (i.e. via PeriodicExecutor)?
>
> Any suggestions appreciated.
>
> --
> Ilya Obshadko
>

Reply via email to