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