On 14/10/2011 19:48, Scott Van Wart wrote:
> I tend to start/stop Tomcat a fair amount during the day through Eclipse
> for my development.  I don't use SSL or sessions.  Here's what I've been
> getting during startup:
> 
>     INFO: Creation of SecureRandom instance for session ID generation
> using [SHA1PRNG] took [17,053] milliseconds.
> 
> Usually it's anywhere from 4-12 seconds (but I just ran a task a little
> while ago that exhausted my entropy pool, I guess).  Is there any way to
> disable this?  I remember searching for a solution to this awhile back
> and only finding things relating to Tomcat 6 (this is 7; though I don't
> remember having this startup delay with version 6).  So I decided to
> just put up with it.  But now it's almost half of my startup time.

We use this during testing:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/startup/FastNonSecureRandom.java?view=annotate

Once you have built this and added it to the lib directory, you need to
configure the Manager to use it (in conf/context.xml).

Mark

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

Reply via email to