Image Magick Server Load??

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
zosoplayer
Posts: 2
Joined: 2014-01-30T20:06:47-07:00
Authentication code: 6789

Image Magick Server Load??

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Image Magick Server Load??

Post 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>
zosoplayer
Posts: 2
Joined: 2014-01-30T20:06:47-07:00
Authentication code: 6789

Re: Image Magick Server Load??

Post 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>
Post Reply