Note that a good deal of this time might be spent in
HttpServletRequest.getSession(): the 3.2.1 implementation is much slower
than the 3.2.2 version.  You might want to time your calls and, if that's
where the slow-down is, upgrade to 3.2.2.

                                        -- Bill K. 

> -----Original Message-----
> From: pedro salazar [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 2:02 AM
> To: [EMAIL PROTECTED]
> Subject: creating a instance of a servlet: takes too long!!
> 
> 
> Greetings,
> 
> why is that my servlet when the first time is invoked, it 
> takes about 30
> seconds or more to start when the servlets that came in tomcat are
> instantaneous? After the servlet container instantiated and 
> initialized my
> servlet, all the following requests are very fast. Is there 
> any advice for
> what we should do and don't do in init() method? I just 
> initialize some
> properties and a connection pool....
> Well is it possible that my servlet container at any time my 
> may shutdown my
> servlet to release memory, and another time it will be 
> requested to start
> again and take another time too long to start, correct?
> 
> How can I benchmark the time of instantiation of my servlet 
> and the time of
> my init method?
> 
> System configuration:
> -Tomcat 3.2.1
> -JDK 1.3
> -Linux RedHat 6.2 [kernel 2.2.18]
> -PII400Mhz 256Mbytes
> 
> thanks.
> --
> <psalazar/>
> 
> 
> 

Reply via email to