sul-dlss / riiif

IIIF image server in ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Huge ImageMagick temp files?

benwbrum opened this issue · comments

I've incorporated riiif into benwbrum/fromthepage and am delighted -- great stuff!

I do have one problem, however -- it seems that riiif generates enormous temporary files through ImageMagick, as I discovered when /tmp filled up after I pointed Mirador at my production server:

-rw------- 1 fromthepage fromthepage 160563200 Oct  1 16:13 magick-27931xH7AjyMNUao2
-rw------- 1 fromthepage fromthepage 211680000 Oct  1 16:23 magick-289004VQUiuNCmDJP
-rw------- 1 fromthepage fromthepage 169344000 Oct  1 16:23 magick-28900WDKGqb6QaBEW
-rw------- 1 fromthepage fromthepage 169344000 Oct  1 16:23 magick-28994_23iC4nXagbZ
-rw------- 1 fromthepage fromthepage 211680000 Oct  1 16:23 magick-28994lUryuxd1NOhW
-rw------- 1 fromthepage fromthepage 169344000 Oct  1 16:24 magick-29008e7j_rm3OnQ2c
-rw------- 1 fromthepage fromthepage 211680000 Oct  1 16:24 magick-29008h3tmz3TbuDfo
-rw------- 1 fromthepage fromthepage 211680000 Oct  1 16:29 magick-29866GOHyDHAKV7Wi
-rw------- 1 fromthepage fromthepage 169344000 Oct  1 16:29 magick-29866SM0tazaV00F1

Any guess as to what's causing this or how to remediate it?

That sounds like imagemagick is crashing. I'm going to guess this is because you exceeded the memory limit. See http://www.imagemagick.org/script/resources.php for configuration parameters. Another possibility is that the Linux Out Of Memory (OOM) killer is reaping the process.

That hadn't occurred to me at all.

Thanks for the help -- I'll try to do some controlled tests to see what's
going on.

On Thu, Oct 1, 2015 at 12:36 PM, Justin Coyne notifications@github.com
wrote:

That sounds like imagemagick is crashing. I'm going to guess this is
because you exceeded the memory limit. See
http://www.imagemagick.org/script/resources.php for configuration
parameters. Another possibility is that the Linux Out Of Memory (OOM)
killer is reaping the process.


Reply to this email directly or view it on GitHub
#24 (comment)
.

Thanks -- we got everything working nicely.

On Fri, Jul 8, 2016 at 2:45 PM, Justin Coyne notifications@github.com
wrote:

Closed #24 #24.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#24 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAMNGRTeq9JQhUPbqxZT6Bb6XP5ITQoaks5qTqjNgaJpZM4GHbsN
.

@benwbrum what was the cause / fix?

I can't be 100% sure, but I'd upgraded Imagemagick between spotting the
problem and discovering that it seemed to be fixed, so that's my best guess.

On Fri, Oct 14, 2016 at 9:19 AM, Chris Beer notifications@github.com
wrote:

@benwbrum https://github.com/benwbrum what was the cause / fix?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMNGQQOxlFargklpOxdL-nRJz2bHB2Sks5qz49bgaJpZM4GHbsN
.