This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16300|Reply: 3

[Web] When posting, the php-fpm process instantly reaches 99% of the CPU, fault analysis

[Copy link]
Posted on 10/23/2014 11:45:56 PM | | | |


I have always said that nginx+php is more efficient than apache+php.

So the nginx+php combination used,

Usually the cpn of the php-fpm process accounts for about 1%, but today I posted a picture post and found that the CPU instantly reached 99%

Then I asked a friend who asked me to check the slow query logs, and then I checked the php logs and found a lot of code


Actually, I didn't understand it very well, and then the friend sent me the main code, saying that it was the code that slowed down the server

I looked at the code, this is a plugin for Baidu to automatically submit URLs, Baidu submit

Alas, I'm hesitating to close this plugin


  1. [0x00007ff2c2b3c860] get_headers() /root/source/plugin/baidusubmit/function/function_baidu.php:644
  2. [0x00007ff2c2b3c738] baidu_get_avatar() /root/source/plugin/baidusubmit/class_schema.php:26
  3. [0x00007ff2c2b3c4c8] setAuthorIcon() /root/source/plugin/baidusubmit/function/function_baidu.php:593
  4. [0x00007ff2c2b3c278] baidu_schema_body_build() /root/source/plugin/baidusubmit/sitemapinc.inc.php:63
  5. [0x00007ff2c2b3c118] +++ dump failed
Copy code






Previous:Install Mac OS X10.9 under Win system Black Apple tutorial
Next:Enable slow log configuration in nginx php-fpm (to detect slow-executing PHP scripts)
Posted on 10/24/2014 10:07:41 AM |
Optimize code or close
 Landlord| Posted on 10/24/2014 10:44:26 AM |
Summer Posted on 2014-10-24 10:07
Optimize code or close

Anyway, Baidu does not include my inner page, just close the plugin

Save Baidu trouble, Baidu spider love to come
Posted on 10/24/2014 10:56:44 AM |
admin posted on 2014-10-24 10:44
Anyway, Baidu does not include my inner page, just close the plugin

Save Baidu trouble, Baidu spider love to come

Baidu Spider is coming soon
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com