Page 1 of 1

Image Magick Server Load??

Posted: 2014-01-30T20:11:23-07:00
by zosoplayer
Hello,

I am having a developer create me a custom internet appliance. He is planning on using Image Magick on the server for the image manipulation, converting, processing etc. We will be using EPS, PSD and JPEG files and outputting to PDF files. I am trying to get an idea the type of server I am going to need to be able to handle this. I know i didn't provide a ton of information, but can anyone give me an idea generally what type of pressure image magick puts on server load, etc? We are probably going to be outputting 1K-3K files a month.

Any help would be appreciated and please dont hesitate to ask any questions if further details are needed. Thank you so much!

Re: Image Magick Server Load??

Posted: 2014-01-31T06:55:47-07:00
by magick
We process tens of thousands of images each month @ http://www.imagemagick.org/MagickStudio ... Studio.cgi and http://jqmagick.imagemagick.org/ on our 4 core 64-bit X5660 @ 2.80GHz host with 8GB of memory and 250GB of disk. This has been running continuously for years now without any problems. To reduce denial-of-service problems, we ping each incoming image and deny them if they are large in size (e.g. exceed 4096x4096 or > 2MB). We also limit how much resources any one image operation can consume with this ImageMagick policy file:

Code: Select all

<policymap>
  <policy domain="resource" name="temporary-path" value="/tmp"/>
  <policy domain="resource" name="memory" value="256MiB"/>
  <policy domain="resource" name="map" value="512MiB"/>
  <policy domain="resource" name="area" value="128MB"/>
  <policy domain="resource" name="disk" value="1GiB"/>
  <policy domain="resource" name="file" value="768"/>
  <policy domain="resource" name="thread" value="2"/>
  <policy domain="resource" name="throttle" value="0"/>
  <policy domain="resource" name="time" value="120"/>
  <policy domain="system" name="precision" value="6"/>
</policymap>

Re: Image Magick Server Load??

Posted: 2014-01-31T14:42:11-07:00
by zosoplayer
thank you this is helpful!

magick wrote:We process tens of thousands of images each month @ http://www.imagemagick.org/MagickStudio ... Studio.cgi and http://jqmagick.imagemagick.org/ on our 4 core 64-bit X5660 @ 2.80GHz host with 8GB of memory and 250GB of disk. This has been running continuously for years now without any problems. To reduce denial-of-service problems, we ping each incoming image and deny them if they are large in size (e.g. exceed 4096x4096 or > 2MB). We also limit how much resources any one image operation can consume with this ImageMagick policy file:

Code: Select all

<policymap>
  <policy domain="resource" name="temporary-path" value="/tmp"/>
  <policy domain="resource" name="memory" value="256MiB"/>
  <policy domain="resource" name="map" value="512MiB"/>
  <policy domain="resource" name="area" value="128MB"/>
  <policy domain="resource" name="disk" value="1GiB"/>
  <policy domain="resource" name="file" value="768"/>
  <policy domain="resource" name="thread" value="2"/>
  <policy domain="resource" name="throttle" value="0"/>
  <policy domain="resource" name="time" value="120"/>
  <policy domain="system" name="precision" value="6"/>
</policymap>