Question

I have one project in Java EE, I use Apache TomEE 1.5.2 Server and NetBeans IDE 7.3.1

When I open project with my app and I choose "Run" option or "Deploy" (undeploy current file from server and deploy) option it last a few second (eg. (total time: 5 seconds)). But when I choose "Debug" option (undeploy current file from server, deploy and run app in debug mode) it last much more: 6 minute.

How can you explain it?

Note

For NetBeans 8 Beta I get time 9 minute and for NetBeans 7.4 I get 7-8 minute, more then for 7.3 :(

Was it helpful?

Solution

Try to disable all breakpoints, some breakpoints such as conditional breakpoints on very frequently used classes or method breakpoints in general can cause a great slowdown in debug mode.

Also increase the PermGen settings, have a look at this answer as well. By disabling all breakpoints, you should get a startup time comparable to the non debug run.

Then try to enable the breakpoints back one by one to see which one is causing the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top