Memory limit not set - using the maximum available memory

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
josal
Posts: 2
Joined: 2013-06-07T09:28:02-07:00
Authentication code: 6789

Memory limit not set - using the maximum available memory

Post by josal »

I'm trying to limit the memory used with the

Code: Select all

convert
command.

I've tried different limits, explained here: http://www.imagemagick.org/script/comma ... .php#limit, for example

Code: Select all

-limit memory 32MiB -limit area 64MiB
or similar. But in my hosting it always get the maximum available memory (512MB). I have changed this maximum to 1024MB and it gets it all as well. So, it's not a problem of memory, I think, it's like the limit is not being set properly...

The process only gets 14 images (1MB each) and ensamble to a single pdf file. Simple process.... but not possible to do it in production in my server... by now :-)

I've also tried memory and map limits with 0 (suggested here: viewtopic.php?f=1&t=23280&p=99486),

Code: Select all

-limit memory 0 -limit area 0
, in order to avoid the memory cache and delegate everything to the disk cache, but everything works the same way, my hosting says I've arrived to the maximum available memory and consequent errors happen (R14, heroku - https://devcenter.heroku.com/articles/e ... a_exceeded)

The heroku support team says the problem comes from the library, not from the server...

Thanks again in advance and thanks for the great tool.
Post Reply