tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rees <dree...@gmail.com>
Subject Re: TC7 very slow SessionIdGenerator SecureRandom initialization
Date Sat, 28 Jan 2012 00:45:17 GMT
On Fri, Jan 27, 2012 at 3:42 PM, Caldarale, Charles R
<Chuck.Caldarale@unisys.com> wrote:
>> From: Pid [mailto:pid@pidster.com]
>> > that's why the setting of /dev/./urandom is important, even
>> > though it would seem to be equivalent.
>
>> So editing the file fixes this, or just using the system property?
>
> Good question; I suspect either would work, but I've only ever used the system property.
>
> However, we still don't know definitively that lack of entropy is the cause of the problem
here.

I can confirm that adding the system property
-Djava.security.egd=file:/dev/./urandom eliminates the delay.

Watching /proc/sys/kernel/random/entropy_avail while Tomcat is
starting up shows that it drops from ~140-150 down to single digits
until Tomcat initializes.

-Dave

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


Mime
View raw message