Search code examples
javatomcatwebserver

Tomcat taking too much time to start


I am currently using tomcat 6 as my Web Server.
I have a very small application which should not take long to deploy on server, but my tomcat is taking too long start.

It is taking most of its time in following step.

INFO: Starting Servlet Engine: Apache Tomcat/6.0.16

I don't know why it is taking much time. Same is the case with stopping the server. I tried almost everything I know. I also tried to delete server from the workspace and started from scratch. I don't know what is the problem.


Solution

  • You can find out which library consumes the time. When the server is being started in a debug mode, pause its thread several times and examine stacktraces. There may be possibly some library that populates its Spring application context, weaves advised objects, initializes file storage, whatever. If so, you will see it from stacktraces.