Control Web Panel

WebPanel => PHP => Topic started by: faishkhan on July 24, 2017, 08:07:33 AM

Title: php-cgi use hig CPU usage
Post by: faishkhan on July 24, 2017, 08:07:33 AM
Hi Centos, I need Help my system CPU usage average is up to 1.00 and i have only one website and almost 40 Visitors average.
 MY VPS and Config Detail is:
Apache version: Apache/2.4.27
PHP version: 5.6.30 [PHP Switcher]
MySQL version: 10.1.25-MariaDB
FTP version: 1.0.30
System Info

CPU Model: Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
CPU Details: 4 Core (3067 MHz)
Distro Name: CentOS release 6.9 (Final)
Kernel Version: 2.6.32-042stab120.6
Platform: x86_64 [openvz]

Please Help my CPU usage all time high due to php-cgi. how i solve this issue. Need Help!
Title: Re: php-cgi use hig CPU usage
Post by: PavelZh on April 06, 2018, 09:41:04 AM
Same problem (appeared 1 month ago or even more)

php-cgi for any site consume up 100% CPU during page load

CWP version: 0.9.8.586
Distro Name: CentOS Linux release 7.4.1708 (Core)
Kernel Version: 3.10.0-693.21.1.el7.x86_64
CPU Model: Intel(R) Xeon(R) CPU E5320 @ 1.86GHz
CPU Details: 4 Core (1862 MHz)
Platform: x86_64 [hyperv]

Apache version: Apache/2.4.29
PHP version: 5.6.35
MySQL version: 10.1.32-MariaDB
FTP version: 1.0.46

Title: Re: php-cgi use hig CPU usage
Post by: studio4host on April 06, 2018, 11:24:50 AM
try to enable varnish + nginx
Title: Re: php-cgi use hig CPU usage
Post by: PavelZh on April 09, 2018, 10:25:40 AM
Yes, it helped particulary - reduced from 100% to 60-75%
Title: Re: php-cgi use hig CPU usage
Post by: studio4host on April 11, 2018, 11:41:03 AM
you should consider configuring varnish then according to your site script as this can reduce it to very low resource usage if configured properly.
for varnish conf google is your best friend