What initialisation is your servlet doing?? 



> 
> 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. 
> 

Reply via email to