I have a PHP script that will use exec to run commands on the server. The idea is that it'll monitor a PDF generation script on our server. I'm running into an issue where when the PDF generation process is stalled it takes up 98% CPU usage and the PHP script doesn't run. The PHP is supposed to kill the stalled PDF services.

What should I do to resolve this? What are some other solutions?

link|improve this question

4  
Would it be too much bother to at least tell us what OS? – John Gardeniers Jun 26 '11 at 21:43
feedback

1 Answer

If you server is running some form of linux, try setting a ulimit on the user that generates the PDF's.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.