Page 1 of 1

Massive .pam file created in /tmp

Posted: 2016-02-29T13:46:59-07:00
by ponny
On a couple of my boxes that do image resizing, I'm suddenly getting huge .pam files (there's a 56,804,130,880 byte one today called /tmp/magick-lMnXACg3.pam) created at in /tmp. Any idea what could be causing this?

Re: Massive .pam file created in /tmp

Posted: 2016-02-29T17:19:42-07:00
by magick
Chances are you inadvertently processed a very large image and ImageMagick cached the pixels to disk in uncompressed form. See https://www.imagemagick.org/discourse-s ... =4&t=26801. You can set a policy to prevent such large files on your system.

Re: Massive .pam file created in /tmp

Posted: 2016-03-02T02:51:24-07:00
by ponny
Any reason why these files aren't being cleaned up? When I see these files present, there's no imagemagick running. Could be a bug?


Also, looking at my Ubuntu policy.xml there seems to be a typo of EB instead of GB for the example settings:
<policy domain="resource" name="disk" value="16EB"/>

Re: Massive .pam file created in /tmp

Posted: 2016-03-02T04:16:00-07:00
by snibgo
... there seems to be a typo of EB ...
There's nothing wrong with exabytes. If your disk isn't that large, this is effectively an "infinity" setting, or no-limit.

Re: Massive .pam file created in /tmp

Posted: 2016-03-02T04:37:01-07:00
by magick
ImageMagick temporary files are cleaned up on a normal program exit or if a catchable signal is thrown. If an uncatchable signal is thrown, such as KILL, there is no opportunity for ImageMagick to clean up temporary files and they will need to be removed manually.