Imagick slow on Windows 2008

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
ancient666
Posts: 3
Joined: 2012-04-08T23:02:59-07:00
Authentication code: 8675308

Imagick slow on Windows 2008

Post by ancient666 »

Hi!

I had ImageMagick 6.6.3-9 2010-08-22 Q16 running fine on my Win 2003 server with Apache 2.20 and PHP 5.xx, but on my new virtualized Win 2008 server the same ImageMagick, or some never-ones work, but awfully slow. Same PDF takes about 30 seconds to convert to thumb-image, as on my earlier server the same on took about 5 secs.! Is there anything to be done? I read in google, that the openmp-support might be the problem on virtualized servers, but how to get a non-openmp package on windows? Or is the performance issue something else? Thanks!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Imagick slow on Windows 2008

Post by anthony »

More likely you are having threading problems with two many threads, or not enough virtual CPU's.

See architure document for thread handling options.
http://imagemagick.org/script/architecture.php#threads
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ancient666
Posts: 3
Joined: 2012-04-08T23:02:59-07:00
Authentication code: 8675308

Re: Imagick slow on Windows 2008

Post by ancient666 »

Thank you for your answer. I tried increasing the amount of virtual CPU's to 4, but the load for httpd.exe was 25 during the generating-process and the time used in generating decreased only 3 seconds, to 27. And normally the time has been about 5-10 secs. So it's not the CPU-issue. Anything else to be done? Any suggestions are really welcome and appreciated!
ancient666
Posts: 3
Joined: 2012-04-08T23:02:59-07:00
Authentication code: 8675308

Re: Imagick slow on Windows 2008

Post by ancient666 »

BTW, I came to conclusion, that it is the OpenMP that might be causing this slowlyness. Is there a way to disable OpenMP on Windows, or are there any pre-compiled installer-packages for Windows without OpenMP?

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Imagick slow on Windows 2008

Post by magick »

Set the threads resource limit to 1 to run ImageMagick algorithms in only one thread. For example, use -limit thread 1 on the command line.
Post Reply