Debug with Netbeans8, Tomcat very slow. Speedup?

Hi,

Debugging with Netbeans and Tomcat is very slow, only starting up takes 60 seconds and more.

  1. How can I speed it up, settings etc.?
  2. What is the best IDE to work with?
  3. Is there a faster WEB container than Tomcat?
  4. It seems also I run out of memory, due to memory leakage. Once and while I have to kill of the Java Tomcat.

Im working with the latest MacBookPro.

Thanks!

Check the timestamps of different events in the log of Tomcat startup - although Tomcat is a little slow to start, 60s sounds like a lot. Do you have many/large applications deployed on the Tomcat instance?

For the best IDE, it is a matter of preference. If you are using Maven and don’t need the Visual Designer, NetBeans is a good option.

Jetty and recent versions of JBoss/Wildfly might start faster than Tomcat, GlassFish might also be fast. Jetty 6 starts in a blink of an eye, but doesn’t support Servlet 3.0 so you need a web.xml, and does not support modern push mechanisms. If you want to reduce the need of servlet container restarts, you could take a look at a commercial product called JRebel by the company ZeroTurnaround.

Memory leaks are most likely in the application - a memory profiler would help find them, or you can use the free tool JVisualVM that comes with the JDK to take and compare/analyze heap dumps. Commercial products tend to give more information and control over memory profiling if you have a tricky case.