Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

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

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Nov 3, 2009, 4:05 PM

Post #1 of 1 (51 views)
Permalink
[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[at]httpd.apache.org
ReportedBy: mtsai[at]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[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.