Logging CPU / Memory usage

2010-05-18 Thread F10
Hello list I am writing a module that would be logged cpu time and memory usage for each query to the vhost. Need help how to implement it. -- Only one 0_o

Re: Logging CPU / Memory usage

2010-05-18 Thread Jerome Renard
Hello, On Tue, May 18, 2010 at 5:07 PM, F10 as...@ukr.net wrote: Hello list I am writing a module that would be logged cpu time and memory usage for each query to the vhost. Need help how to implement it. How about reading how mod_status works first ? :) -

Re: Logging CPU / Memory usage

2010-05-18 Thread F10
Thank you for your reply. I'll see how this module works. On Tue, May 18, 2010 at 05:23:51PM +0200, Jerome Renard wrote: Hello, On Tue, May 18, 2010 at 5:07 PM, F10 as...@ukr.net wrote: Hello list I am writing a module that would be logged cpu time and memory usage for each query to

Re: detecting .htaccess in a per-dir directive handler (control mod_fcgid FcgidWrapper use in htaccess via per-server config)

2010-05-18 Thread William A. Rowe Jr.
On 5/18/2010 12:17 AM, Nick Kew wrote: On 17 May 2010, at 20:13, Jeff Trawick wrote: BETTER SUGGESTIONS? I never quite understood our AllowOverride being set in stone, and many times I've felt that using any of the existing ones for a new function was a grotty hack. OTOH it doesn't

Re: detecting .htaccess in a per-dir directive handler (control mod_fcgid FcgidWrapper use in htaccess via per-server config)

2010-05-18 Thread William A. Rowe Jr.
On 5/18/2010 1:10 AM, William A. Rowe Jr. wrote: On 5/18/2010 12:17 AM, Nick Kew wrote: On 17 May 2010, at 20:13, Jeff Trawick wrote: BETTER SUGGESTIONS? I never quite understood our AllowOverride being set in stone, and many times I've felt that using any of the existing ones for a new

Re: File descriptor leak with mpm-event / apr file bucket cleanup

2010-05-18 Thread Stefan Fritsch
On Tue, 18 May 2010, Ruediger Pluem wrote: --- buckets/apr_buckets_file.c.dist +0200 +++ buckets/apr_buckets_file.c @@ -34,8 +34,7 @@ apr_bucket_file *f = data; if (apr_bucket_shared_destroy(f)) { -/* no need to close the file here; it will get - * done automatically

RE: File descriptor leak with mpm-event / apr file bucket cleanup

2010-05-18 Thread Plüm, Rüdiger, VF-Group
-Original Message- From: Stefan Fritsch [mailto:s...@sfritsch.de] Sent: Dienstag, 18. Mai 2010 09:18 To: dev@httpd.apache.org Cc: d...@apr.apache.org Subject: Re: File descriptor leak with mpm-event / apr file bucket cleanup On Tue, 18 May 2010, Ruediger Pluem wrote: ---

Re: File descriptor leak with mpm-event / apr file bucket cleanup

2010-05-18 Thread Joe Orton
On Tue, May 18, 2010 at 09:18:23AM +0200, Stefan Fritsch wrote: On Tue, 18 May 2010, Ruediger Pluem wrote: So if you want to close this fd you IMHO would need to do some refcounting and only close it if no other filebucket still references it. The filebuckets already do refcounting.

Re: svn commit: r943769 - in /httpd/sandbox/mod_allowmethods: ./ modules/allowmethods/

2010-05-18 Thread Igor Galić
- William A. Rowe Jr. wr...@rowe-clan.net wrote: On 5/12/2010 9:24 PM, iga...@apache.org wrote: Modified: httpd/sandbox/mod_allowmethods/ (props changed) httpd/sandbox/mod_allowmethods/modules/allowmethods/ (props changed) Since this is in the family of modules/aaa/

Re: Reducing number of mod_lua hook directives

2010-05-18 Thread Akins, Brian
On 5/12/10 11:09 AM, Brian McCallister bri...@skife.org wrote: Ah, but what happens when there are multiple functions for same hook? We could get into magic naming and scanning of global scope, but that really turns my stomach. No need. It's easy. Think about it in lua, not C. Something

ErrorDocument's Behaviour

2010-05-18 Thread André Manhaes Machado
I searched in the list for someone with the same problem but I didn't find out anything relates to my issue directly. I set up a http server using a plugin from weblogic to server somes pages with extension .jsp (further explanation about it take a look at

Re: ErrorDocument's Behaviour

2010-05-18 Thread Nick Kew
On Tue, 18 May 2010 15:13:11 -0300 André Manhaes Machado andre.manh...@gmail.com wrote: Searching a way to bypass this issue, I took a look in the code in the function ap_process_request(I'm using apache 2.2.11): [chop] I did some debug in it and I saw that the requests that are send to

Re: File descriptor leak with mpm-event / apr file bucket cleanup

2010-05-18 Thread Stefan Fritsch
On Tuesday 18 May 2010, Joe Orton wrote: On Tue, May 18, 2010 at 09:18:23AM +0200, Stefan Fritsch wrote: On Tue, 18 May 2010, Ruediger Pluem wrote: So if you want to close this fd you IMHO would need to do some refcounting and only close it if no other filebucket still references it.

Re: File descriptor leak with mpm-event / apr file bucket cleanup

2010-05-18 Thread Stefan Fritsch
On Tuesday 18 May 2010, Stefan Fritsch wrote: It does not cause any breakage in the perl-framework. As you suspected, it does break apr-util's testbuckets test. I will look if I can run the subversion test suite, too. I found no breakage in subversion 1.6.11's test suite. Cheers, Stefan