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

Francis,

On 1/24/12 4:19 AM, Francis GALIEGUE wrote:
> On Mon, Jan 23, 2012 at 17:52, Caldarale, Charles R 
> <chuck.caldar...@unisys.com> wrote:
>>> From: Oliver Due Billing [mailto:o...@watagame.com] Subject:
>>> Restarting tomcat 7.0.23 on MAC OS X 10.6
>> 
>>> I have a test-server on my macbook pro and it takes forever to 
>>> restart the server do anyone have a clue to whats happening.
>> 
>> It may be collecting entropy.  Take a thread dump, and see what
>> the JVM is doing during the pause.
>> 
>> You can try setting
>> 
>> -Djava.security.egd=file:/dev/./urandom
>> 
>> as a system property.  Note that the apparently extra "/." is
>> required to trick the JVM into using the alternate random byte
>> source.
> 
> I was about to suggest this but wasn't sure that the problem also 
> existed for Mac OS X...

OSX definitely has both /dev/random and /dev/urandom, so I suspect
their semantics are similar to what I've experienced on Linux systems
before.

I'm running (on my Mac):

$ java -version
Java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

... and this is in my java.security file:

securerandom.source=file:/dev/urandom
#
# The entropy gathering device is described as a URL and can also
# be specified with the system property "java.security.egd". For example,
#   -Djava.security.egd=file:/dev/urandom
# Specifying this system property will override the securerandom.source
# setting.

There is no explicit setting for java.security.egd.

I've never had a problem restarting my webapps, but I'm not using SSL
on my own machine, which is the most likely thing to require a bunch
of entropy on startup.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8eywUACgkQ9CaO5/Lv0PBmLQCgq8O1XwpQTZ7z7hVR91PFVNgW
qCEAoKRI7vBFqHx3VA+6QcLJThbtY01l
=iR5k
-----END PGP SIGNATURE-----

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

Reply via email to