Hi, Having a single instance of EntityManagerFactory and making it live for the entire application lifetime is a good practice. Can you tell us how the persistent domain classes for are being specified (and loaded) for the application? For example, do you declare them in <class> clause of persistence.xml? Or in a orm.xml file? Or are they not declared at all explicitly and loaded dynamically by the application? Also is the application using multiple classloaders to load these classes?
The container in PCRegistry that has occupied so much memory in the described profile is used to hold persistent domain class information. Knowing the classloading behavior of the application will help diagnosis. ----- Pinaki -- View this message in context: http://n2.nabble.com/Memory-Usage-tp3166851p3174914.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
