Solve the imagick method that causes the CPU to surge to 100% during multi-thread running, and solve imagick. Solve the problem that imagick causes a CPU spike to 100% during multi-thread running, solve imagick. if you want to install imagic to usrlocalimagemagick Directory, first use usrlocalimagemagickbinconv to solve the way that imagick causes CPU surges to 100% during multi-thread running.
If you install imagic in the/usr/local/imagemagick Directory
First, run the/usr/local/imagemagick/bin/convert-version command to check whether multithreading is enabled for the output content. The value of Features:Empty or DPCIt indicates a single thread. if Features: The value is openMP, it indicates multithreading. the multi-thread mode of imagick has a bug, which causes the cpu usage of multiple cores to soar to 100% instantly. therefore, you must use its single-thread mode.
The above is the result displayed when I configured it correctly. If no configuration is correct, the following result is displayed.
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 the single-thread mode, and the second result is the multi-thread mode, because the multi-thread mode of imagick has bugs, therefore, if you are using the multi-threaded imagick mode at the beginning, yum remove imagemagick must be used to uninstall it and re-install it.
You only need to add the following red font to the installation.
./Configure -- prefix =/usr/local/imagemagick-- Disable-openmp
Worker imagick causes the CPU to surge to 100% during multi-thread running, solve imagick. if you want to install imagic to the/usr/local/imagemagick Directory, first use/usr/local/imagemagick/bin/conv...