简体   繁体   中英

How to see in Apache logs request processing time, not request serving time

There is an Apache 2 server choking under multiple requests. Amount of processes reaches number set by Maxclient, and new connections pile up in queue. I need to identify which requests take too much time x amount of requests. Apache logs may show either:

%...D The time taken to serve the request, in microseconds.

or

%...T The time taken to serve the request, in seconds.

And this time taken to serve the requests make it's hard to analyze. Because at the time when process table overflows is the time around which I need to measure. And there serve time equals time spent in connection queue plus time processed .

So a .php script which took 2 seconds will show 2 seconds. And .cgi script which spent minute (real data ;)) in queue will show 60.5 seconds.

Is there a way to log time taken to process requests, preferably not involving engaging with hooks?

这可能就是您想要的东西: https : //code.google.com/p/mod-log-firstbyte/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM