Re: [users@httpd] mod-cgi reads entire output into memory...

2012-07-16 Thread Nadav Har'El
On Mon, Jul 16, 2012, Nick Kew wrote about "Re: [users@httpd] mod-cgi reads entire output into memory...": > On Mon, 16 Jul 2012 17:07:23 +0300 > Nadav Har'El wrote: > > I looked at the httpd code, discovered (if I understand correctly) that > > 1. As I already guessed, Apache doesn't let the CGI

[users@httpd] Solved was Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
"Macks wrote: > Can you run either strace (or dtrace depending on platform) against the > running process and see what it is doing during the request? > > A > -- > Aaron Macks > Sr. Unix Systems Engineer > > Harvard Business Publishing > 300 North Beacon St.| Watertown, MA 02472 > (

Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread Macks, Aaron
Can you run either strace (or dtrace depending on platform) against the running process and see what it is doing during the request? A -- Aaron Macks Sr. Unix Systems Engineer Harvard Business Publishing 300 North Beacon St.| Watertown, MA 02472 (617) 783-7461| Fax: (617)

Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
Vivek Nambiar wrote: > May be you can add the hostname and ipaddress in the linux hosts > file,restart apache and see if that makes any difference?? > > Thanks > VIVEK > Hi Vivek, I made suer that there was an entry in /etc/hosts, with both the FQDN and short hostname and bounced Apache

RE: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
David Hubbard wrote: > From: Garrison, Jim (ETW) [mailto:jim.garri...@nike.com] > > > > > -Original Message- > > > Subject: Re: [users@httpd] Apache taking (exactly) 30 > > seconds to serve > > > static images > > > > Just a wild guess, but is it possible Apache is configured to

Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread Vivek Nambiar
May be you can add the hostname and ipaddress in the linux hosts file,restart apache and see if that makes any difference?? Thanks VIVEK On Tue, Jul 17, 2012 at 2:26 AM, David Hubbard < dhubb...@dino.hostasaurus.com> wrote: > From: Garrison, Jim (ETW) [mailto:jim.garri...@nike.com] > > > > > ---

RE: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread David Hubbard
From: Garrison, Jim (ETW) [mailto:jim.garri...@nike.com] > > > -Original Message- > > Subject: Re: [users@httpd] Apache taking (exactly) 30 > seconds to serve > > static images > > Just a wild guess, but is it possible Apache is configured to resolve > Hostnames and rDNS is not set up

RE: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
"Garrison wrote: > > -Original Message- > > Subject: Re: [users@httpd] Apache taking (exactly) 30 seconds to serve > > static images > > Just a wild guess, but is it possible Apache is configured to resolve > Hostnames and rDNS is not set up correctly? > Jim, Thanks for the sug

RE: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread Garrison, Jim (ETW)
> -Original Message- > Subject: Re: [users@httpd] Apache taking (exactly) 30 seconds to serve > static images Just a wild guess, but is it possible Apache is configured to resolve Hostnames and rDNS is not set up correctly?

Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
Nick Kew wrote: > On Mon, 16 Jul 2012 10:47:54 -0400 > wrote: > > > Has anyone encountered something like this. What timeouts might be set to > > 30 seconds in Apache that might be causing this kind of behavior? > > Check your keepalive. > > If your browser, or some agent on the netwo

Re: [users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread Nick Kew
On Mon, 16 Jul 2012 10:47:54 -0400 wrote: > Has anyone encountered something like this. What timeouts might be set to 30 > seconds in Apache that might be causing this kind of behavior? Check your keepalive. If your browser, or some agent on the network, is getting its knickers in a twist abo

Re: [users@httpd] mod-cgi reads entire output into memory...

2012-07-16 Thread Nick Kew
On Mon, 16 Jul 2012 17:07:23 +0300 Nadav Har'El wrote: > When I use it in Apache, Apache itself (NOT the CGI process!) grows > by 512 MB (!). I was really surprised by this, because ideally Apache > should hardly grow at all, as at most (if at all) it should be reading > modest-sized buffers from

[users@httpd] Apache taking (exactly) 30 seconds to serve static images

2012-07-16 Thread ohaya
Hi, We are using Apache proxying and also host some static content (images, under htdocs) on the Apache, and we're finding that, intermittently (we'll have a page, and say, 2 images will take 30 seconds), it is taking a long time to serve some images, almost exactly 30 seconds. The Apache is r

[users@httpd] mod-cgi reads entire output into memory...

2012-07-16 Thread Nadav Har'El
Hi, It's been 10 years since my last message to this mailing list, and I'm happy to join it again :-) I've encountered a surprising phenomenon with Apache's mod-cgi, which unnecessarily slows it down for huge outputs, and as a "bonus" also has a bug: taking up huge amounts of memory: I have a CGI