The strange reason why php-fpm occupies CPU 100%

Source: Internet
Author: User
The strange reason why php-fpm occupies CPU 100% recently, I used the online lnmp one-click installation and configuration of the environment below the net centos6.2 of Lotto. after a few days, I found that php-fpm occupies CPU 100%, you can run the uptime Command to view the system load, which is about 20, and the first column of vmstat is about 20. the machine basically cannot run. But it was good a few days ago. I don't know why it suddenly became like this. On the Internet, I found the strange reason why php-fpm occupies CPU %.
Recently, I used the online lnmp one-click installation and configuration of the environment in the centos6.2 environment of Lotto Tao. after a few days, I found that php-fpm occupies CPU,

You can run the uptime Command to view the system load, which is about 20, and the first column of vmstat is about 20. the machine basically cannot run.

But it was good a few days ago. I don't know why it suddenly became like this.

I have read many articles on the Internet and adjusted the system kernel parameters and the configuration parameters for php and nginx. the problem persists and I don't know what to do!


The backend is tested by the data center. this is not a code problem. it is because the data disk is infected with viruses, resulting in high bandwidth usage and high system load.
Later, we reinstalled the system and formatted the data disk. so far, no new problems have been found. we need to continue to observe.


As to why the virus is infected, I guess I may have found a novel thief program on the Internet and used it to test the server after installation. The result is also infected. Is it because of this novel thief program, I cannot guarantee it now, but I cannot remember other post-infection channels.
So you should be cautious in the future. the code downloaded from the internet cannot be published on the server at will!

First floor tongming13310411 hours ago
Dsad

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.