1

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 :(

MWiesner
  • 8,868
  • 11
  • 36
  • 70
kuba44
  • 1,838
  • 9
  • 34
  • 62
  • can you try it in netbeans 7.4 or even better netbeans 8.0 beta(has more native support for tomee). – ravshansbox Jan 28 '14 at 21:27
  • @Ravshan in NetBeans 7.4 and 8 i get same strange situation – kuba44 Jan 29 '14 at 00:53
  • I had a similar problem when my netbeans was configured to use a proxy server, maybe you check it up? – ravshansbox Jan 29 '14 at 07:32
  • @Ravshan I change in option to don't use proxy server, but it didn't help. I get same times on Netbeans 7.3.1, 7.4 and 8 Beta – kuba44 Jan 29 '14 at 10:51
  • i can recommend you some more steps to check: 1. Fresh unzip tomee. 2. try to deploy fresh new application(maybe problem is related with your application) – ravshansbox Jan 29 '14 at 11:02
  • @Ravshan for new application deployed at new server i get same effect. For new application "Hello world", deploy on TomEE last 2 minute – kuba44 Jan 29 '14 at 22:48
  • Have you tried older versions of netbeans (7.0, 7.1,...)? Unrelated from that: Is there anything suspicious in the NB log files? – uhm Feb 26 '14 at 12:38
  • In Netbeans 7.1 it's ok (last 44 sec). I don't find anything suspicious in the NB log – kuba44 Feb 26 '14 at 17:32

1 Answers1

2

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.

Community
  • 1
  • 1
Angular University
  • 42,341
  • 15
  • 74
  • 81