Resolve the Imagick method that causes the CPU to increase to 100% during multi-threaded operation, and resolve the imagick_php tutorial

Source: Internet
Author: User
Tags imagemagick

The solution to the Imagick in multi-threaded operation caused the CPU burst to 100%, the solution Imagick


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.orgCopyright: Copyright (C) 1999-2014 ImageMagick Studio LLCFeatures: 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

http://www.bkjia.com/PHPjc/1085570.html www.bkjia.com true http://www.bkjia.com/PHPjc/1085570.html techarticle solve the Imagick in multi-threaded operation caused the CPU burst to 100%, the solution Imagick if imagic installed to/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.