Solve the method that imagick causes the CPU to surge to 100% during multi-thread running, and solve the imagick_PHP tutorial.

Source: Internet
Author: User
Tags imagemagick
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.orgCopyright: Copyright (C) 1999-2014 ImageMagick Studio LLCFeatures: 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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.