tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@mailops.com
Subject Re: creating a instance of a servlet: takes too long!!
Date Fri, 06 Jul 2001 13:14:41 GMT


Friday, July 06, 2001, 5:01:37 AM, pedro-b-salazar@ptinovacao.pt 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 initialized my
ps> servlet, all the following requests are very fast. Is there any advice for
ps> what we should do and don't do in init() method? I just initialize some
ps> properties and a connection pool....
ps> Well is it possible that my servlet container at any time my may shutdown my
ps> servlet to release memory, and another time it will be requested to start
ps> again and take another time too long to start, correct?

ps> How can I benchmark the time of instantiation of my servlet and the time of
ps> my init method?

ps> System configuration:
ps> -Tomcat 3.2.1
ps> -JDK 1.3
ps> -Linux RedHat 6.2 [kernel 2.2.18]
ps> -PII400Mhz 256Mbytes

ps> thanks.
ps> --
ps> <psalazar/>



Mime
View raw message