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 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: 530, today: 1, week: 9, month: 19
I'm sure
Flag graphic as offensive, or in violation of site rules