Thank you Mark!!!
I thought you were talking about the kind of sessions that
you instantiate when you want to use cookies or URL rewriting
to give a user a persistant experience....
I got rid of the delay by adding:
<%@ page session="false"%>
before the body of my .jsp pages!
-James Carroll
--------------------
MicroBrightField Inc.
> -----Original Message-----
> From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 10:50 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Delay (40 seconds) on first jsp access
>
>
> The Psuedo-Random Number Generator (PRNG) used to create
> session ids took
> several seconds to initalize on some platforms. This caused a very
> noticable delay for the first request that created a session.
> This has been
> changed in Tomcat 3.2.2. The PRNG initialization is now
> *much* faster and
> is also done when Tomcat starts instead of when the first session is
> created.
>
> Tomcat 3.2.2b1 is available now. Tomcat 3.2.2 beta 2 should
> be available
> sometime tomorrow.
>
> > -----Original Message-----
> > From: James Carroll [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 22, 2001 9:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: Delay (40 seconds) on first jsp access
> >
> >
> >
> > Delay (40 seconds) on first jsp access
> >
> > Hi, On Windows 98, Tomcat 3.2.1 & 3.3M2 (they both show the delay)
> > Stand-alone... I have some Servlets, that I include into some
> > pages like so:
> > ...
> > <h2>Favorite Public Virtual Slides</h2>
> > <jsp:include page="servlet/GroupFavorites" flush="true" />
> > ...
> >
> > Q: Is there any better way to include the output from a servlet
> > in an otherwise static page?
> >
> > The very first time I start Tomcat, and access this page, there
> > is a very very long delay. Everything is running on localhost,
> > so I don't think there is any kind of name lookup that is timing
> > out...
> >
> > If I turn on LogEvents in 3.3M2, I get the following:
> >
> > .......
> > 2001-03-22 10:33:47 - LogEvents: preServletInit
> DEFAULT:/mbfvs ServletH
> > TOMCAT/J
> > SP/intro.jsp(SW (/intro.jsp CN=intro_1))
> > 2001-03-22 10:33:47 - LogEvents: postServletInit
> DEFAULT:/mbfvs ServletH
> > TOMCAT/
> > JSP/intro.jsp(SW (/intro.jsp CN=intro_1))
> > 2001-03-22 10:33:47 - LogEvents: preService R( /mbfvs + /intro.jsp +
> > null)
> >
> > Long delay
> >
> > 2001-03-22 10:34:21 - LogEvents: postService R( /mbfvs +
> /intro.jsp +
> > null)
> > 2001-03-22 10:34:21 - LogEvents: postService R( /mbfvs +
> /intro.jsp +
> > null)
> > 2001-03-22 10:34:21 - LogEvents: beforeCommit R( /mbfvs +
> /intro.jsp +
> > null)
> > 2001-03-22 10:34:21 - LogEvents: afterBody R( /mbfvs + /intro.jsp +
> > null)
> > 2001-03-22 10:34:21 - LogEvents: postRequest R( /mbfvs +
> /intro.jsp +
> > null)
> > ........
> >
> > The delay is _much_ longer than it would take to compile
> the jsp page,
> > and there is no hard drive activity during the time.
> >
> > Does anyone have any idea what would be stalling at this point???
> >
> > Thanks!!!
> > -James Carroll
> > --------------------
> > MicroBrightField Inc.
>
>