Imagemagick on VPS
-
Hello, I recently installed imagemagick on my ubuntu 10.04 from the ultimate vps guide. Everything is working correctly except for extremely high server load when processing images. This may be partially my fault as my website relies on this a lot and my images are not precisely small, most of them are 970px wide.
Still I thought it would serve well some guidance about how to properly setup and configure imagemagick.
Cheers,
Jose R. LopezPosted 1 year ago # -
I figured out why imagemagick was using 100% of my cpu and causing high server load. I am posting it here in case it helps anyone.
1) make sure you install imagemagick from source. I originally installed from the ubuntu repository only to find out it was an old version and I had no configuration control.
2) When installing from source, use the following options:
--disable-openmp
additionally, unless your images require it, use:
--with-quantum-depth=8
as it uses less memory. This comes from the imagemagick forums when load is an issue.
My resulting setup with these options is:
Version: ImageMagick 6.6.3-0 2010-07-17 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features:with this setup imagemagick is no longer using 100% of my cpu. The most important change is: --disable-openmp
hope it helps someone.
Jose R. Lopez
Posted 1 year ago # -
nice .. tx Jose
Posted 1 year ago # -
There is another solution based on MAGICK_THREAD_LIMIT environment variable so you don't have to recompile ImageMagick. Check this out: High CPU load when converting images with ImageMagick
Posted 2 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
