Script is finished but "convert" continues to run?
Posted: 2011-01-25T12:53:34-07:00
I have a process that I can run to turn PDF files into individual JPG's. The process is a PHP script that calls ImageMagick from the command line. This script has run flawlessly (and still continues to do so).
My question/problem is that I have noticed that the PHP script (and subsequent ImageMagick calls) have completed - their job is done and I can see it, but in looking at top convert continues to use triple digit memory %. Also the load steadily increases. Sometimes it consumes so much resources that it actually causes apache to lock up and the server needs to be rebooted.
What is weird though is I can refresh a webpage and see the finished product on one screen, but on my terminal on the other screen convert is still going gangbusters and the load increases (sometimes it stops around 7, but sometimes I manually kill the script when it hits 12).
I could understand the problems if convert was actually doing something, but when I am staring at the finished product and convert continue's to run for minutes later I think something else must be up.
Any ideas?
My question/problem is that I have noticed that the PHP script (and subsequent ImageMagick calls) have completed - their job is done and I can see it, but in looking at top convert continues to use triple digit memory %. Also the load steadily increases. Sometimes it consumes so much resources that it actually causes apache to lock up and the server needs to be rebooted.
What is weird though is I can refresh a webpage and see the finished product on one screen, but on my terminal on the other screen convert is still going gangbusters and the load increases (sometimes it stops around 7, but sometimes I manually kill the script when it hits 12).
I could understand the problems if convert was actually doing something, but when I am staring at the finished product and convert continue's to run for minutes later I think something else must be up.
Any ideas?