English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Speaking of the recently configured LNMP is relatively stable, and I am secretly pleased, but since last night, I have found that the CPU usage of the server is too high, even to100%. My memory is1G, the normal situation should be occupied5% below, the most not exceeding10%
The recent monitoring of Aliyun shows:
Using the top command to view, found that php-fpm uses too much memory, which is very abnormal:
I followed the article 'Nginx uses php-Two ways of process management and optimization of fpm in the article 'Configure php-The number of fpm processes is as follows:
Restart php-After the fpm, the problem was not solved thoroughly, and it still appears to occupy 99Above, do not know which friend knows how to analyze and solve it? Little brother seeks help!
Subsequent Progress
Yesterday (3Month29On the day, look for @Rongge for guidance and inspection, and later found that the eAccelerator component was using CPU too high for some unknown reason, open php.ini
vi /usr/local/PHP/etc/php.ini
Delete the configuration information of eAccelerator and restart lnmp
/root/lnmp restart
But the problem was not solved thoroughly, a few hours later, I restarted lnmp, and found that it seemed to be getting more stable.
Possible commands:
top //View CPU and memory usage information, check which process is using CPU highly and its PID
ll /proc/PID Number/fd/ // Find the process that operates the file through PID, and then know where the problem lies