i have a java web application, using Spring, Jersey (jax-rs) and Hibernate.
It runs fine and fast, but there are some days it takes a big amount of time to initialize in debug mode only and when it starts is really slow...
I'm using Eclipse 3.6, Apache Tomcat 6 and java 1.6.0_29 for MAC OS X.
Application begin to log slow after writing this log line:
INFO: Initializing Spring root WebApplicationContext
and before this log lines:
30-dic-2011 10.51.25 com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
com.example.project.web.rest
How can I investigate? Any suggestions?
Unfortunately I really don't know what I did to reduce performance..
Thanks a lot for help! Davide.
debug code runs a lot slower than release - Visual Studio Feedback.
Turning off the setting Enable toString() data views solved this problem of slow debugging. Incase you are experiencing slow debugging issues on IntelliJ, do make sure that this setting is turned off.
One thing that's helped me in a similar situation is to delete all breakpoints in Eclipse. It's worth a try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With