The php-cgi process occupies too much memory and the CPU 100% load is very high. What is the reason?

What process is php-cgi?

Such as php, perl, tcl, etc... cgi is a protocol for data transmission between a web server and a cgi program (here can be understood as a php interpreter), which ensures the transmission of standard data.

How to troubleshoot the excessive usage of the php-cgi process?

如果LinuxThe server has too many php-cgi processes, occupies too much memory, and the CPU exceeds 100%. If the load is very high, the website will be inaccessible.

Type in SSH top Command ▼

The php-cgi process occupies too much memory and the CPU 100% load is very high. What is the reason?

  • Even after restarting the VPS server many times, the php-cgi process still occupies too much memory, the CPU quickly exceeds 100%, and the load is still very high...
  • It is found that the php-cgi process is taking up too much. What should I do?

What is the reason for too many php-cgi processes?

How to find the problem with too many php-cgi processes?

Just type in SSH ps -ef command, you can seeUFOThe website is occupying the php-cgi process▼

What is the reason for too many php-cgi processes?How to find the problem with too many php-cgi processes?Just enter the ps -ef command in SSH, you can see that a website is occupying the second php-cgi process

  • We can directly forcibly close this website access.
  • For example: Renaming the folder of this website through ftp can quickly force close the access of this website.

The specific problem is becauseWordPressThe website, when opening the log of the BackWPup plugin, displays an error message:

"This site encountered a fatal error."

How to solve the problem of too many php-cgi processes and high load?

After the following WordPress error troubleshooting methods, troubleshoot errors▼

Found to beWordPress pluginCaused by mistakes, decisively disable the long-outdatedSEO Ultimate plugin.

  • Originally, I wanted to convert the data of the SEO Ultimate plugin to other SEO plugins before deactivating it when I had time.
  • Now it is found that the SEO Ultimate plugin is causing the problem of too many php-cgi processes, so I can only be forced to disable the SEO Ultimate plugin first.
  • After deactivating the SEO Ultimate plugin, the php-cgi process took up too much memory, the CPU was 100%, and the load was very high, which was also solved.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) The "php-cgi process takes up too much memory and the CPU 100% load is very high, why is it so high", which is helpful to you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-1862.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top