Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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