tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: jsvc takes a really long time to start tomcat
Date Fri, 08 Oct 2010 15:40:12 GMT
Hash: SHA1


On 10/8/2010 11:30 AM, Mark Shifman wrote:
> jsvc used to stop and start my tomcat server very quickly (15-30 seconds).
> Recently, I noticed it stops right away but takes about 3 minutes to start.
> (I of course don't know what I changed.)

Often this kind of long startup time is due to one of the following

1. Misconfigured DNS which takes a long time to timeout during a lookup

Solution: fix your DNS

2. Use of blocking source of entropy for PRNGs

Solution: use /dev/urandom (or equivalent) instead of /dev/random (or
equivalent) in your JRE's lib/security/ file. The setting
you want to confirm is "securerandom.source". Most recent Sun JRE
releases use /dev/urandom if it is available.

If you are using OpenSSL via the tc-native library (aka "APR"), you
might want to check to see how that's been configured wrt random sources.

If you run Tomcat directly (not through jsvc) does it start up faster?
My guess is that jsvc is /not/ the problem here. If Tomcat itself starts
up slowly, try taking a thread dump during the long pause before
startup: it'll likely reveal the source of the problem.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message