-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark,
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 problems: 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/java.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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyvO1sACgkQ9CaO5/Lv0PDjRQCeLMn3ceU4uhS8cdCb2IfjPYJT D6MAn0I853Igv+5dSUxq+j2fsSZ7/7yw =iW5O -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org