RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Michael Wentzel
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

RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Randy Layman
Really it depends upon what you are doing in your init method. I have several servlets that load almost instantly, but don't do anything in their constructor or init methods. The only thing that you should do in your init method is to call super.init at the beginning.

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread wire
Friday, July 06, 2001, 5:01:37 AM, [EMAIL PROTECTED] wrote: ps Greetings, ps why is that my servlet when the first time is invoked, it takes about 30 ps seconds or more to start when the servlets that came in tomcat are ps instantaneous? After the servlet container instantiated and

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread wire
If your servlet has changed and needs to be recompiled, then using jikes instead of javac will save a lot of time. Friday, July 06, 2001, 5:01:37 AM, [EMAIL PROTECTED] wrote: ps Greetings, ps why is that my servlet when the first time is invoked, it takes about 30 ps seconds or more to start

RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Frederick Lefebvre
PROTECTED]] Sent: Friday, July 06, 2001 9:18 AM To: [EMAIL PROTECTED] Subject: Re: creating a instance of a servlet: takes too long!! If your servlet has changed and needs to be recompiled, then using jikes instead of javac will save a lot of time. Friday, July 06, 2001, 5:01:37 AM, [EMAIL PROTECTED

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Bo Xu
pedro salazar wrote: 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

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Peter Davison
There's another reason for this and it has to do with the java.security.SecureRandom class. From what I can tell, tomcat uses this class to generate a seed value for the session ID. The first request for a SecureRandom value (eg. new SecureRandom().nextLong()) can take many, many seconds to

Re: creating a instance of a servlet: takes too long!!

2001-07-06 Thread Bo Xu
Bo Xu wrote: pedro salazar wrote: 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

RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread William Kaufman
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.