Re: Flushing lingering CGI processes

2005-04-04 Thread Stas Bekman
Nick wrote: Hello Firstly, thank you to everyone who has contributed to the great apache project. I understand that if a CGI process is launched then gets stuck, if the CGI process keeps quiet, the apache server will not 'know' the http connection has broken so will not 'know' to kill the CGI

Re: Flushing lingering CGI processes

2005-03-31 Thread Joe Orton
On Wed, Mar 30, 2005 at 11:02:05PM +0100, Nick wrote: I understand that if a CGI process is launched then gets stuck, if the CGI process keeps quiet, the apache server will not 'know' the http connection has broken so will not 'know' to kill the CGI process. The stuck CGI process and the

Re: Flushing lingering CGI processes

2005-03-31 Thread Nick
Nick Hill wrote: A great solution for administrators would be to set a timer. If the CGI program hasn't given any output for the given time, the CGI process is killed. As a refinement; The timer firstly sends a signal to the CGI program which may be caught by the CGI program to generate some

Re: Flushing lingering CGI processes

2005-03-31 Thread Rici Lake
On 31-Mar-05, at 6:16 AM, Nick wrote: As a refinement; The timer firstly sends a signal to the CGI program which may be caught by the CGI program to generate some form of output. This output will prove whether the http connection is still open. If the CGI program doesn't output anything, a TERM

Re: Flushing lingering CGI processes

2005-03-31 Thread Nick Hill
I have a script which takes a snapshot of processes running on my production server each minute. I theorise several posts arriving around the same time possibly locked a database causing processes to pile up. bringing the whole machine down after 20 minutes as heavy, locked server and database

Flushing lingering CGI processes

2005-03-30 Thread Nick
Hello Firstly, thank you to everyone who has contributed to the great apache project. I understand that if a CGI process is launched then gets stuck, if the CGI process keeps quiet, the apache server will not 'know' the http connection has broken so will not 'know' to kill the CGI process. The

Re: Flushing lingering CGI processes

2005-03-30 Thread William A. Rowe, Jr.
At 04:02 PM 3/30/2005, Nick wrote: I understand that if a CGI process is launched then gets stuck, if the CGI process keeps quiet, the apache server will not 'know' the http connection has broken so will not 'know' to kill the CGI process. The stuck CGI process and the accompanying apache