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 11 2015, 8:35

createEntityManager() will load the persistence meta-data and connection to the database. Nothing that should take very long. How big is your persistence unit?

Profiling it would be the best way to find out what is occurring.

Check if you have any events that run on startup.

Try a new persistence unit with no classes to narrow down the cause.

Enable logging on finest to get a trace of what is occurring.

Id: 355204
Posted: Aug 11 2015, 8:35
Replies: 0
Views: 1942, today: 3, week: 10, month: 23
I'm sure
Flag graphic as offensive, or in violation of site rules