If you install imagic to the/usr/local/imagemagick directory
First, use the/usr/local/imagemagick/bin/convert-version command to see if the output is already multi-threaded, Features: The value is null or the DPC description is single-threaded, if Features: The value is that the OpenMP description is multithreaded. Imagick's multithreaded mode has a bug that causes multi-core CPU usage to soar to 100% instantly. So be sure to use its single-line Regulation regulation mode.
The top is the result that I display when I configure it correctly, and the result below is displayed if not configured correctly
Version: ImageMagick 6.8.9-10 Q16 x86_64 2015-12-28 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: openMP
|
The first result is a single-threaded mode, the second result is multithreaded mode, because the Imagick multithreading mode has a bug, so if you are just starting with multithreaded mode installed Imagick that must be the Yum remove ImageMagick to uninstall it and re-install it.
Simply add the following red font section to the installation to
./configure--prefix=/usr/local/imagemagick --disable-openmp
The above describes the decision Imagick in multi-threaded operation caused the CPU burst to 100% of the method, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.