Massive .pam file created in /tmp
Massive .pam file created in /tmp
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
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
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"/>
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"/>
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Massive .pam file created in /tmp
There's nothing wrong with exabytes. If your disk isn't that large, this is effectively an "infinity" setting, or no-limit.... there seems to be a typo of EB ...
snibgo's IM pages: im.snibgo.com
Re: Massive .pam file created in /tmp
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.