Perhaps not... Backgrouding a process is perfectly legitimate. I would first 
look the convert script and make sure that that it's exiting correctly. And 
before that I would check that there's enough free /tmp.

dali

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
craiganz
Sent: Thursday, 30 July 2009 4:35 p.m.
To: NZ PHP Users Group
Subject: [phpug] Re: MySQL update query crashing server?


Hi.
The problem is that each of the jobs is backgrounded (by the &) so you
end up creating 2000 processes in saveimage() all trying to do
conversions at the same time and taking the machine to it's knees.
You just need to remove the & from the two $job= lines.
-Craig

On Jul 30, 3:48 pm, "Aaron Cooper" <[email protected]> wrote:
> Hi all. I'm looking at some inherited (and old) code for a client after they 
> have found that a particular image manipulation script that is run on a cron, 
> is routinely crashing the server. The machine still functions, and responds 
> to PING. But no http, ssh, ftp or IO seems to respond.



--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to