You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/11/04 01:05:01 UTC

DO NOT REPLY [Bug 48115] New: Duration to receive the request, generate response, and send back to the client

https://issues.apache.org/bugzilla/show_bug.cgi?id=48115

           Summary: Duration to receive the request, generate response,
                    and send back to the client
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_proxy_ajp
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mtsai@tivo.com


Created an attachment (id=24468)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24468)
a patch to include duration in apache notes

This is a simple change to save the time spent in processing the request:
1. Time it took mod_proxy_ajp to get the request from client and send it to
tomcat.
2. Time it took tomcat to generate a response.
3. Time it took client to accept the response.
4. Total time it took to process the request (sum of 1, 2, 3).

This is helpful for debugging. If a client is on low bandwidth connection, it
may hang a apache thread, who is waiting on the client to accept all the
response. It may also be desirable to my changes in #ifdefined so it can be
compiled out if the user chooses not to use this feature. 

The time is in microseconds and can be printed out later by mod_log_config,
using this format:

LogFormat "%{ajp_send_request_duration}n %{ajp_response_create_duration}n 
%{ajp_send_response_duration}n %{ajp_lifetime}n"

The diff was created from httpd svn tree as of 11/3. To apply this patch do
these 2 steps:
1. cd trunk/modules/proxy/
2. patch < mod_proxy_ajp_duration_as_notes.patch

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org