A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
EJB and other Java EE Technologies
EntityManagerFactory init creates excessive objects?
Joined: Mar 14, 2006
Aug 13, 2013 01:30:51
I am profiling my
web app with YourKit to reduce memory usage and I have found out that one of the biggest memory occupants is created by javax.persistence.Persistence.createEntityManagerFactory
Have a look at memory allociations tree:
Name, Recorded Objects, Size
) 390292 160876904
going into lower levels, I can see this:
org.hibernate.util.ReflectHelper.classForName(String) 60165 124122640
and it's 2 subnodes:
java.lang.ClassLoader.loadClass(String) 33334 37485640
java.lang.Class.forName(String) 26831 86637000
is this correct behaviour?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: EntityManagerFactory init creates excessive objects?
String -memory address
Instances of string objects
nodding my head for these (scjp)
difference between == and equals()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014