Hi,
We've developed an Applet using Hibernate which works quite well.
One huge problem however is, each time the applet is re-loaded (and therefor the hibernate is re-initialized) about +30mb of heap are gone.
Users using the default heap-size of 96mb can therefor reload the applet only twice before they encounter OOM.
With -Xmx256M the following loop runs 9 times, before hitting an OOM:
Code:
for(int i=0; i < 100; i++) {
new AnnotationConfiguration().configure().buildSessionFactory();
}
Any idea where those references which keep the old hibernate objects alive could come from? I already tried to inspect the object graph but wasn't very successful.
I was using hibernate-3.5.6.
Thank you in advance, Clemens