tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david delbecq <delbd+jaka...@oma.be>
Subject Re: Questions about sometime slowness of tomcat
Date Tue, 20 Nov 2007 23:00:04 GMT
First request is slower to respond to client becaus tomcat do have to
initialize your servlet before first request and, probably, to compile
your jsp

Jun Zhang a écrit :
> Hi,
>
> I really do not know which mail alias is the correct one to post this
> topic. So I send it to all.
>
> I am developing a web application using Tomcat, which uses a servlet to
> handle the request, which includes geting data from database and writing
> the data back to the client to display. When I restart the tomcat and
> begin this process, then the time would be 750ms for one request to get
> response. However when the client sends the request after the tomcat
> finish some requests, then the time would become about 200ms.
>
> I do not know why. I have exclude the affect of database. You know I do
> not know the working mechanism of tomcat. So if someone here could help
> me explain why and if there is some way to avoid it.
>
> Thanks a lot,
>
> Jun
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message