Also, it should be made clear that using this option to speed up the
initial http session creation comes at a cost of lower session
security...fine for development, probably not recommended for
deployment. But, of course, when deployed, this will only cause a delay
once each time you run Tomcat...not a big deal.
From Tomcat's server.xml file:
"You can also specify a "randomClass" attribute, which determines
a subclass of java.util.Random will be used for generating
session IDs.
By default this is "java.security.SecureRandom".
Specifying "java.util.Random" will speed up Tomcat startup,
but it will cause sessions to be less secure."
Rick Horowitz
At 11:43 AM 1/25/01 +0100, you wrote:
>Hi!
>
>Rick Horowitz wrote:
> > I think it is due to the use of secure random number generator, which is
> > the default, and apparently takes a lot of time to initialize. I have
> > switched to a non-secure number generator by adding
> > -Dtomcat.sessionid.randomclass=java.util.Random to the java VM params to
> > tell Tomcat to use the standard Java random nbr generator. See server.xml
> > in Tomcat for more info, and see Tomcat User mailing list archive in past
> > couple of days for other msgs on this subject.
>
>Putting this in jboss.properties works as well.
>
>I have added this line to jboss.properties in CVS, but commented.
>Uncomment to speed things up.
>
>/Rickard
>
> >
> > Rick
> >
> > At 10:45 AM 1/24/01 -0600, you wrote:
> >
> > >hi,
> > >
> > >when testing my app i'v noticed that the first call to
> request.getSession()
> > >is very slow 45-60 secs. This only occurs after restarting jboss_tomcat.
> > >Subsequent calls to getSession() are snappy. does anyone know what this
> > >might be?
> > >
> > >regards,
> > >
> > >todd
> > >
> > >
> > >
> > >--
> > >--------------------------------------------------------------
> > >To subscribe: [EMAIL PROTECTED]
> > >To unsubscribe: [EMAIL PROTECTED]
> > >List Help?: [EMAIL PROTECTED]
> >
> > --------------------
> > Rick Horowitz
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > List Help?: [EMAIL PROTECTED]
>
>--
>Rickard Öberg
>
>Email: [EMAIL PROTECTED]
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>List Help?: [EMAIL PROTECTED]
--------------------
Rick Horowitz
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]