Upgrade
Sign In : Sign Up : Blog : Search: Language : Help :
Java Persistence Performance : Slow factory.createEntityManager() with EcliseLink

RE: Slow factory.createEntityManager() with EcliseLink

by jamesssss posted Aug 10 2015, 7:47

My guess is this is because you are using the H2 database.

H2 is an in-memory database, not a real persistent database. When it starts up H2 reads in the entire database into memory. Try using a real database instead, such as Derby, Postgres, MySQL, Oracle, etc.

You can use a Java profiler to confirm this, such as VisualVM that comes with Java (in bin dir).


Id: 354997
Posted: Aug 10 2015, 7:47
Replies: 0
Views: 440, today: 2, week: 4, month: 19
I'm sure
Flag graphic as offensive, or in violation of site rules