egbokul
egbokul

Reputation: 3974

Slow JPA startup

I created the JPA 2.0 entity classes for our whole database (~200 tables), and now each time I rebuild my application and start it for the first time I get these messages:

INFO: <entity_classname> actually got transformed
INFO: <entity_otherclassname> actually got transformed
...

And the output of these (info) messages in Glassfish is extremely slow, it now takes almost a minute (!) to start the application.

I think the messages are the problem, because sometimes the Glassfish console freezes in the Netbeans window (no messages are output) and then the whole process takes about 5 seconds.

I couldn't find a way to disable these messages, is there a way to speed things up?

Upvotes: 2

Views: 2345

Answers (1)

Pascal Thivent
Pascal Thivent

Reputation: 570365

I think that this is due to dynamic weaving of your JPA classes. Could you try with static weaving (or no weaving at all but this will disable things like lazy-loading)?

Upvotes: 2

Related Questions