Sign In : Sign Up : Blog : Search: Language : Help :
This website is now frozen, please migrate your content to BotLibre.com or BotLibre.biz
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: 1721, today: 3, week: 7, month: 20
I'm sure
Flag graphic as offensive, or in violation of site rules