Ask the CPU, high-load troubleshooting ideas

Source: Internet
Author: User
Recently the PHP-FPM has been full CPU, and later increased the number of processes by adding modification configuration issues to be temporarily resolved.
But for this sudden "symptoms" do not have the experience to troubleshoot the root cause of the problem.
Ask for your predecessors, pointing out the idea!

Reply content:

Recently the PHP-FPM has been full CPU, and later increased the number of processes by adding modification configuration issues to be temporarily resolved.
But for this sudden "symptoms" do not have the experience to troubleshoot the root cause of the problem.
Ask for your predecessors, pointing out the idea!

In all remote call interfaces, lengthy operations record execution time write log
Analyze long-time requests

Start with the procedure and use the Xdebug to find out if the key code takes up a very high time.

Start with the following:

Analyze system Bottlenecks
Analyzing Memory Bottlenecks
Analyze IO Bottlenecks
Parsing process calls
Optimizing Program Code

Look at this article:
Http://linuxtools-rst.readthedocs.org/zh_CN/latest/advance/03_optimization.html

  • Related Article

    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.