PHP-FPM use CPU twice than suPHP

jazz1611

Verified User
Joined
Sep 10, 2014
Messages
28
Hi,

Earlier, i use Custombuild (CB) 1.2 with options: Apache - suPHP + Danginx plugins.
Now, i upgrade to CB 2.0 with default options: Nginx_apache + PHP-FPM (not use Danginx plugins).

I have configured Nginx (CB 2.0) near same as Danginx plugins but CPU still usage high. The visitor has decreased. Check logs is normal. What issues i got?

Regards,
 
It would be difficult to say why, because we do not see your process list (situation in the past vs. current situation) :) By the way, PHP-FPM is not a requirement of nginx_apache option (meaning you can use mod_php+mod_ruid2, PHP-FastCGI or suPHP again).
 
One guess, is that php-fpm does use more ram than other methods.
If your total ram is not enough, then swap memory will be used (disk as ram) which is painfully slow, which can cause the system load to go up.
Note that system load does not mean CPU load exactly, the "load" means the number of requests waiting to be processed by the CPU. A slow disk (high disk I/O or swap memory) can cause slowdown for processes, which increases the load, even though the CPUs are not working hard.

In any case, if you only need 1 php type, I'd recommend mod_php + mod_ruid2.
Then enable opcache if you can, and it should be very fast.

John
 
Back
Top