Re: Total response time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua Slive wrote:
On 11/21/06, Filip Kolendo <filip.kolendo@xxxxxxxxxxxx> wrote:
Hi,

is it possible to log into access log the Apache total response time.
I mean from the very moment the request was received (even if it must
wait to be processed for example due to lack of free threads...), to the
moment the response was prepared and sent.

If it matters my configuration is Win 2003/PHP5.0.5 (CGI)/Apache 2.0.48.

I record the processing time within the PHP scripts and I observed that
there is an additional time (even a few seconds) not used by the PHP
scripts.
I guess it is either a network traffic (rather unlikely) or a time
Apache needs to: start processing the request (queuing the requests?),
start the CGI environment, close the CGI env., send the CGI result to
client...

Any suggestions how can I investigate it more deeply?

The time logged by mod_log_config in %D will be more accurate than
that because it is from the moment the request is received by apache
to the moment the log is written after the request is sent.  There is
no way for apache to measure any time spent waiting in the
ListenBacklog for a free apache process to become available, since it
doesn't have any info on that.  You would need to measure that from a
proxy in front of apache or something like that.

Joshua.
I think the length of the queue of pending connections is very important factor in analyzing the apache performance.
In my case it is probably the source of efficiency problems.
Do you know about any outer tool/counter which would enable to observe the length of this queue. For example, the same way the Performance Monitor can log the disk or IO queues (for platform Windows 2003 Svr)...

Thanks,
Filip

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux