Thanks for the reply.  A little more information:

1. The app always works after it starts up (assuming I didn't introduce
any errors).

2. If, after the app starts up (whether I exercise it or not), I
shutdown Tomcat, remove the exact same stuff from Tomcat (WAR, exploded
WAR, work/Catalina/localhost and logs), copy the WAR to webapps and
startup Tomcat, there is NO (appreciable) delay, the app starts right up
and runs.

3. The delay only occurs when the WAR file has changed.

4. If I reboot my machine, the first time I deploy a WAR, there is a
minor delay (~15 seconds) between the deploy and the startup.

Thanks for the tips on the thread dump.  I will try to gather some info
and post it.


-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, October 06, 2009 11:41 AM
To: Tomcat Users List
Subject: Re: Tomcat hangs for minutes between ContextConfig and
StandardContext (Starting the app)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher,

On 10/6/2009 10:50 AM, Law, Christopher wrote:
> Hello, I'm running Tomcat 6.0.18 using Java 1.6.0_12 on Windows XP 
> professional.
> 
>> I have a problem that occurs during startup deploying a WAR file.
>> Tomcat deploys the WAR file but then there is a delay of minutes 
>> before it tries to start the application.
>>
>> During the delay, there is no CPU usage and there is no abnormal 
>> activity that I can detect.  When Tomcat decides to start the 
>> application, it fires right up.
>>
>> It almost seems like Tomcat is blocked waiting for a reply from some 
>> request.

It might be. Can you take a thread dump during this delay to see what is
happening?

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_
running_webapp_.3F

My guess is that you are using XML validation and you have a firewall
that is preventing the JVM from contacting a remote server to fetch a
DTD.

Another possibility is that SecureRandom is taking forever to
initialize: if your JVM is configured to use a blocking source of
entropy, that may be the problem. This often happens in *NIX
environments, but it appears that you are running on Microsoft Windows,
so that's unlikely to be the problem.

Any more information you can provide will certainly be helpful.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrLZSQACgkQ9CaO5/Lv0PBTXgCfeVocP4clX5dBblkIKaBwrHkG
rHAAn1klDppfjMEU+vA4wDQQqLsNryJP
=Sfu+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to