scripts not completing...

Jeff jam at quark.emich.edu
Fri Jun 2 19:56:07 EDT 2000


On Fri, Jun 02, 2000 at 02:28:05AM +0000, chibaA at TinterlogD.Tcom wrote:
> Other than having a runaway script... is there any other routine
> reason why a script would not terminate properly?  (I'm running python
> scripts as CGI through apache).  I noticed that script processing gets
> really slow after a while, and noticed that there were still processes
> still running with that script.  
> 
> Is there anyway to make the system automatically kill those processes
> (apache, python scripts) which have been idle for a long time (and
> probably hanging, or running away)?
> 
> TIA
> 
> kc

while there probably *is* a way to kill a hung process, that approach is, in
my opinion, prone to error.. if I was in this position, I would examine the
code itself to try to fix the bug rather than hacking around it (which, when
deadlines are involved, is sometimes the only way to do things). 

do you have access to the source code with this problem? what you describe
sounds like some kind of non-terminating loop. 

since CGI is involved, what type of error do you get on the browser when
this happens? does it say "No Data", or "Internal Server Error", or does it
just get slow?

what else is running on the machine that might be the cause of the problem?

what platform are you having this problem on? the specifics of
troubleshooting for a win32 version of apache (for example) would be
different from a UNIX-like platform.

hope that helps..

regards,
J
-- 
|| visit gfd <http://quark.emich.edu/>
|| psa member -- <http://www.python.org/psa/> 




More information about the Python-list mailing list