httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] Apache on Windows Performance
Date Wed, 02 Feb 2005 12:25:44 GMT
%T is time to serve the request. Throw that in your logformat.

P

> -----Original Message-----
> From: stamhankar998@yahoo.com [mailto:stamhankar998@yahoo.com]
> Sent: Tuesday, February 01, 2005 9:59 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Apache on Windows Performance
> 
> I have a C/C++ module and I'm trying to measure
> processing time.  I have a function registered via
> ap_hook_handler, which is the entry point into the
> module.  In that function, I get the current time via
> apr_time_now(), do all of my processing (essentially,
> invoking various handler functions based on the uri,
> which create C++ objects that do the real work), get
> the current time again, and log the time difference.
> 
> A few questions:
> 1. The numbers logged seem rather large; are they in
> microseconds?
> 2. Is there any way to measure the time that Apache
> takes (in my handler thread/process) to set up the
> request object and whatnot prior to calling my
> module's main entry point?  Is there any way to
> measure the time that Apache takes (in my handler
> thread/process) to finish off the request handling
> after my main function returns (i.e. to send back the
> resultant data)?
> 
> In particular, I noticed that with ThreadsPerChild set
> to 10, Apache sometimes fell behind in processing
> requests, while having it set to about 50 solved the
> issue.  The current performance numbers I've gathered
> inside my module don't seem to justify having to make
> this change.
> 
> Is there any way to tell Apache to log url request
> processing times in access.log or error.log (or any
> other log)?  I'm perfectly happy if Apache gives me a
> sum total of how long it took to process a request,
> and I can subtract out my own measurements to figure
> out how much time is spent doing extra processing
> outside of my module.
> 
> Thanks much!
> 
> -Sandeep
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
> 
> 
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message