Hello.
I'm using hibernate 3.2.6.ga. I'm also using eclipse (3.4.1).
The jvm is running out of memory after I run a few junit tests, during which the tests connects and disconnects to a memory database (hsqldb).
During these tests, a few jobs are performing some work with the database. The jobs are handled by eclipse (workers, workerpool)
After a few tests, the out of memory happens. I checked the dump and it seems the eclipse workers are always holding the SessionFactoryImpl (>400MB).
I'm asking if this could be a problem caused by eclipse ? by my tests ? by hibernate ?
During the disconnect, the session factory is closed:
Code:
getCurrentSession().close();
getSessionFactory().close();
setSessionFactory(null);
See the dump here:
Cheers