My apology. I also forgot to mention that currently i have no reverse proxy in front of tomcat for the time being.
Please share your thoughts on this. Thanks ! On Sun, Nov 3, 2013 at 12:23 PM, Albert Kam <moonblade.w...@gmail.com>wrote: > Hello. > > I'm currently using tomcat 7.0.28-4 on debian wheezy, along with APR > connector. > > I'm having a slow response when accessing the webapp. > > Based on google chrome's tool to inspect req/response's time, i found out > that it takes at around 1 second (around 400ms connecting, sending 1ms, > 600ms waiting, receiving 1ms) for to successfully fetch my initial htmp > response, which is slow, considering the time needed is excluding the > additional resources files like css and js. > > The returned html has 4.5kbytes only, not compressed. > > 1. Content-Language: > en > 2. Content-Type: > text/html;charset=utf-8 > 3. Date: > Sun, 03 Nov 2013 05:06:19 GMT > 4. Server: > myserver.com > 5. Transfer-Encoding: > chunked > > I tried turning on and off the compression, but doesnt have any effects. > Here's my connector config : > <Connector port="80" > maxParameterCount="500" > maxPostSize="250000" > scheme="http" > secure="false" > protocol="org.apache.coyote.http11.Http11AprProtocol" > > connectionTimeout="20000" > disableUploadTimeout="false" > connectionUploadTimeout="300000" > maxThreads="500" > processorCache="500" > > URIEncoding="UTF-8" > /> > > Now, the backend's processing (in my case, an mvc controller) logging > shows that it took 75ms, and the ui rendering took 25ms. > > I would like to find out how long does it take for the connector to return > this response. Is it possible for me to log this information ? > > I also thought that the connection could be a problem, but my inspection > on different websites, they all have very good response time even for html > response 10 times bigger than mine, and i'm sure that the response is not > cached (not 304 not modified). > > -- > Do not pursue the past. Do not lose yourself in the future. > The past no longer is. The future has not yet come. > Looking deeply at life as it is in the very here and now, > the practitioner dwells in stability and freedom. > (Thich Nhat Hanh) > -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh)