files in /tmp

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
my600080
Posts: 13
Joined: 2010-06-11T12:41:30-07:00
Authentication code: 8675308

files in /tmp

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: files in /tmp

Post 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)?
my600080
Posts: 13
Joined: 2010-06-11T12:41:30-07:00
Authentication code: 8675308

Re: files in /tmp

Post 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
Post Reply