High cpu issue (need your advice, please)
Posted: Thu Feb 02, 2017 7:29 am
Hello,
I am faced with a situation that I can not resolve and I ask for your help.
This situation has started since the ASL version 5 update. No changes were made to the site before the update(I had no high serverload value).
On a VPS with only one account, I have up to 500 incoming concurrent requests that target a page that does not exist on the account (RSS Feed), which causes a value up to 30 (serverload) and crash notifications d 'Apache.
The site is made under vivvo CMS (I know, it is no longer maintained, but the client wants to keep vivvo CMS), I naturally disabled the RSS feed from the admin, so the queries go on a Page 404.
I tried to mitigate the situation by configuring mod_fcgid and refining apache (but still MPM Prefork) and installing Nginx (reverse caching proxy) with an additional micro-cache layer.
Prohibiting access to the page (via htacess) does not solve the problem, the load (serverload) remains high, this problem occurs every 2 hours and apart from these picks, the site does not consume an enormous amount of resources.
Of course, during picks, I get the error: "502 Bad Gateway" and sometimes error 503.
Any suggestions to remedy this is welcome.
For information:
1. VPS config:
Ram : 8 Go
Processeur : 6 vCPU
Apache : 2.4.25
Mysql : 5.5.52-cll
WHM (cPAnel) : 60.0.36
ASL : 5-0-165
Nginx used : https://github.com/engintron/engintron
2. Apache Config
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 500
MaxRequestWorkers 500
MaxRequestsPerChild 4000
Timeout 50 (I deliberately lowered this value to reduce CPU consumption)
3. Fastcgi configuration for PHP5
FcgidBusyTimeout 300
FcgidConnectTimeout 300
FcgidIOTimeout 300
FcgidIdleScanInterval 120
FcgidIdleTimeout 300
FcgidMaxRequestLen 268435456
FcgidMaxRequestsPerProcess 5000
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 8
FcgidMaxProcesses 150
FcgidProcessLifeTime 120
4. Apache status:
Current Time: Thursday, 02-Feb-2017 12:00:48 CET
Restart Time: Wednesday, 01-Feb-2017 20:43:27 CET
Parent Server Config. Generation: 27
Parent Server MPM Generation: 26
Server uptime: 15 hours 17 minutes 20 seconds
Server load: 16.39 10.04 5.54
Total accesses: 111935 - Total Traffic: 2.1 GB
CPU Usage: u31.97 s83.33 cu0 cs0 - .209% CPU load
2.03 requests/sec - 39.9 kB/second - 19.6 kB/request
312 requests currently being processed, 5 idle workers
LLWLLLLRLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
RLLLLLLLLLLLLWLLLLLWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLWLWLLLLLLLLLLWLLLWLLLLLLWWWWWCWWWWW_____...
................................................................
................................................................
....................................................
I am faced with a situation that I can not resolve and I ask for your help.
This situation has started since the ASL version 5 update. No changes were made to the site before the update(I had no high serverload value).
On a VPS with only one account, I have up to 500 incoming concurrent requests that target a page that does not exist on the account (RSS Feed), which causes a value up to 30 (serverload) and crash notifications d 'Apache.
The site is made under vivvo CMS (I know, it is no longer maintained, but the client wants to keep vivvo CMS), I naturally disabled the RSS feed from the admin, so the queries go on a Page 404.
I tried to mitigate the situation by configuring mod_fcgid and refining apache (but still MPM Prefork) and installing Nginx (reverse caching proxy) with an additional micro-cache layer.
Prohibiting access to the page (via htacess) does not solve the problem, the load (serverload) remains high, this problem occurs every 2 hours and apart from these picks, the site does not consume an enormous amount of resources.
Of course, during picks, I get the error: "502 Bad Gateway" and sometimes error 503.
Any suggestions to remedy this is welcome.
For information:
1. VPS config:
Ram : 8 Go
Processeur : 6 vCPU
Apache : 2.4.25
Mysql : 5.5.52-cll
WHM (cPAnel) : 60.0.36
ASL : 5-0-165
Nginx used : https://github.com/engintron/engintron
2. Apache Config
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 500
MaxRequestWorkers 500
MaxRequestsPerChild 4000
Timeout 50 (I deliberately lowered this value to reduce CPU consumption)
3. Fastcgi configuration for PHP5
FcgidBusyTimeout 300
FcgidConnectTimeout 300
FcgidIOTimeout 300
FcgidIdleScanInterval 120
FcgidIdleTimeout 300
FcgidMaxRequestLen 268435456
FcgidMaxRequestsPerProcess 5000
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 8
FcgidMaxProcesses 150
FcgidProcessLifeTime 120
4. Apache status:
Current Time: Thursday, 02-Feb-2017 12:00:48 CET
Restart Time: Wednesday, 01-Feb-2017 20:43:27 CET
Parent Server Config. Generation: 27
Parent Server MPM Generation: 26
Server uptime: 15 hours 17 minutes 20 seconds
Server load: 16.39 10.04 5.54
Total accesses: 111935 - Total Traffic: 2.1 GB
CPU Usage: u31.97 s83.33 cu0 cs0 - .209% CPU load
2.03 requests/sec - 39.9 kB/second - 19.6 kB/request
312 requests currently being processed, 5 idle workers
LLWLLLLRLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
RLLLLLLLLLLLLWLLLLLWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLWLWLLLLLLLLLLWLLLWLLLLLLWWWWWCWWWWW_____...
................................................................
................................................................
....................................................