[olug] PHP and Linux

unfie at cox.net unfie at cox.net
Mon Sep 6 20:13:21 UTC 2004


Not only should you do the system resources check on the minute level, but have you disabled the 'script timeout' deal ?  And what about the cap on system resources ?

Or, are you stating that the script somehow becomes locked in a kernel call ?

-Will


> 
> From: "Michael Peterson Wireless" <mikejack at stratomail.com>
> Date: 2004/09/06 Mon AM 09:07:55 EDT
> To: "OLUG" <olug at olug.org>
> Subject: [olug] PHP and Linux
> 
> 
> PHP and Linux
> 
> Has anyone other than myself came across issues with running PHP scripts for
> so long that they lock up the Linux kernel and only a system reset will get
> access to the system back?
> 
> The first time it happened I was trying to destroy objects that were not
> created.
> But the script ran for hours before the system become no longer accessible.
> Ping still worked but no access services (HTTP, SSH, Telnet) worked to get
> to the box.
> This system is running RHEL ES 3 Update 2.
> 
> The second time was this weekend when I was running a script for 5-10 hours.
> I was reading a MySQL database and creating a URL and then creating an image
> and saving it to disk.
> After running and creating over 32000 image files the entire system was no
> longer accessible.
> I changed the PHP script so it would be launched from an infinite loop shell
> script and only run for a short time and save a mark point to a text file
> and then the shell slept for 30 seconds and then restarted the PHP script
> reading in the mark point and running from that point to the next mark
> point. I let it only create about 2000 - 2500 images between mark points and
> then stop. It continued until all images were created and I manually stopped
> the shell script.
> This system is running Centos 3.1 ( free recompiled from source clone to
> RHEL ES 3 Update 1 ).
> 
> 
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 




More information about the OLUG mailing list