memory « EntityManager « JPA Q&A





1. Entitymanager causing memory leak?    stackoverflow.com

I have a slow memory leak in my Java application. I was wondering if this could be caused by not always closing the Entitymanager when used. However using myeclipse to generate ...

2. Am I supposed to call EntityManager.clear() often to avoid memory leaks?    stackoverflow.com

I'm new to JPA/OpenJPA and I noticed that if I don't call EntityManager.clear() after i persist entities I get an OutOfMemoryError (I keep adding new entities in a loop). I'm not ...