Page 1 of 1

Imagick slow on Windows 2008

Posted: 2012-04-08T23:05:17-07:00
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!

Re: Imagick slow on Windows 2008

Posted: 2012-04-10T20:20:34-07:00
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

Re: Imagick slow on Windows 2008

Posted: 2012-04-11T23:23:00-07:00
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!

Re: Imagick slow on Windows 2008

Posted: 2012-04-12T23:37:52-07:00
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!

Re: Imagick slow on Windows 2008

Posted: 2012-04-13T05:01:33-07:00
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.