Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-07-27 Thread Christopher Stanton
Which benchmark module would work best with mod_perl, Perl 5.8 and Perl 5.12? On Wed, Jul 27, 2011 at 7:22 AM, Dave Hodgkinson wrote: > > On 26 Jul 2011, at 18:58, Christopher Stanton wrote: > >> I will see if I can get Perl 5.12 and an associated mod_perl up and >> r

Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-07-26 Thread Christopher Stanton
): Requires: httpd >= 2.0.54-0; perl >= 5.8.6-0; perl-Digest-SHA1 >= 2.10-0; mod_perl >= 2.0.1-0; On Tue, Jul 26, 2011 at 12:43 PM, Perrin Harkins wrote: > On Mon, Jul 25, 2011 at 6:43 PM, Christopher Stanton > wrote: >> I am seeing high cpu utilization under RHEL5.6 which I don&

Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-07-25 Thread Christopher Stanton
he socket is set with Blocking => 0. A JPEG (in a 25fps stream) arrives every 40,000 microseconds. Christopher On Mon, Jul 25, 2011 at 6:43 PM, Fred Moyer wrote: > On Mon, Jul 25, 2011 at 4:02 PM, Christopher Stanton > wrote: >> Neither install is running within VMWare. &

Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-07-25 Thread Christopher Stanton
uthoritative source for this information is, > but here's what I found with a search: > > http://yate.null.ro/pmwiki/index.php?n=Main.YateAndVMWare > > On Mon, Jul 25, 2011 at 3:43 PM, Christopher Stanton > wrote: >> I have a MJPEG streaming system which uses mod_

High CPU utilization on RHEL5.6/CentOS5.6

2011-07-25 Thread Christopher Stanton
I have a MJPEG streaming system which uses mod_perl in the web interface to supply the final stream to the client. I am seeing high cpu utilization under RHEL5.6 which I don't see on FC14. We are talking sub 10% on FC14 vs 80% on EL5. This is on different hardware, but not that different. And on E

allow_methods not setting list when request if of type OPTIONS

2008-01-31 Thread Christopher Stanton
Hey Everyone, I am trying to set the allowed bitmask in a custom request handler when I receive the OPTIONS method (and when I receive a method request for a method I do not support). This includes possibly not listing support for GET or POST. I am using: Fedora Core 6 Apache 2.2.4-2.1 mod_perl 2

Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
$r->allowed_methods($reset, $list) only seems to respect the reset flag if the return code from the handler is either Apache2::Const::HTTP_METHOD_NOT_ALLOWED or Apache2::Const::HTTP_NOT_IMPLEMENTED which is not in the documentation. The OPTIONS request is supposed to be URI/resource specific (unle

Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
des." Are the docs just wrong? thanks, Christopher On 10/9/07, Geoffrey Young <[EMAIL PROTECTED]> wrote: > > > Christopher Stanton wrote: > > I am trying to set the allowed bitmask in a custom request handler > > when I receive the OPTIONS method (and when I receive

mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
I am trying to set the allowed bitmask in a custom request handler when I receive the OPTIONS method (and when I receive a method request for a method I do not support). I have followed the example in http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_allowed_ but Apache always returns

[mp2] $r->print produces errors when Content-Disposition contains "built" filename

2005-09-21 Thread Christopher Stanton
Fedora Core 4 httpd-2.0.54-10 mod_perl-2.0.0-0.rc5.3 nph mod_perl script If I user $r->print to print the response to the client, it returns that it sent more bytes than length($write_buffer) and the JPEG, which is part of the response, is bad if the response header contains a Content-Dispositi

Re: Strange $r-print($buffer)/Content-Disposition problem

2005-09-20 Thread Christopher Stanton
In the second example I have already appended "\r\n" to the write buffer. So it really is: $write_buffer .= "\r\n"; $r->print($write_buffer); $r->print($jpeg); $r->print("\r\n\r\n"); I try to write the same data to the client. In one case I write it as one big buffer, in the other case I write

Strange $r-print($buffer)/Content-Disposition problem

2005-09-20 Thread Christopher Stanton
Fedora Core 4 httpd-2.0.54-10 mod_perl-2.0.0-0.rc5.3 I have an nph mod_perl script which will send a JPEG to a client either inline or as an attachment (if a param is passed). If it is an attachment, I set the Content-Disposition to: "Content-Disposition: attachment; filename=\"$snapshot_filename\