Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 532
NIVESH SENGAR Avatar asked Apr 09 '12 09:04

NIVESH SENGAR


2 Answers

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.

like image 124
Alexey Berezkin Avatar answered Oct 02 '22 07:10

Alexey Berezkin


Have you removed all the default web applications that comes with the tomcat installation ? Even though your webapp is a small one, there might be other applications that are taking time to be installed. You can check this from the server log files with the name catalina___.log files.

like image 35
NiranjanBhat Avatar answered Oct 02 '22 08:10

NiranjanBhat