Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Would it be too much bother to at least tell us what OS? – John Gardeniers Jun 26 '11 at 21:43

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


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.