Page 1 of 1

files in /tmp

Posted: 2011-02-20T14:10:08-07:00
by my600080
Hi,

I'm processing a lot of images using ImageMagick 6.6.5. But the files in /tmp dir gets to 101G and eats up all my disk space on the linux box.

I'm wondering maybe imagemagick failed to destroy those files. If so, what problems can cause ImageMagick fail to destroy those files? Is there a way that I can check what files being converted are failed to be destroyed?

Thanks a lot!

Ming

Re: files in /tmp

Posted: 2011-02-20T14:22:39-07:00
by magick
ImageMagick includes signal handlers which calls an asynchronous handle to remove any temporary files before ImageMagick exits. Temporary files will remain if it receives a signal that cannot be intercepted just as SIGTERM. Clean up the temporary files manually and run your workflow. Are the temporary files removed (e.g. are any /tmp/magick-XX?????? remaining)?

Re: files in /tmp

Posted: 2011-02-21T06:02:45-07:00
by my600080
Thanks for your reply. Because it's a very big job (will take likely around two days), before I start another process, I want to see what might have caused the problem. All I was doing is to use a perl script to call a webservice. The webservice handles the conversion of any tiff, pdf files to pngs, then write the converted images' bytearray to Oracle database. Some tiff files failed due to segmentation error. Some pdfs could contain hundreds of pages. I was running multiple processes. Could it be that the failed image conversion cause the problem? I tried manually and it didn't seem to be the case.

Many thanks! -Ming