I run a WHM/cPanel server (with help from our provider / managed) which has about 100 websites running on it. Currently they are all on suPHP which as you know is slow.
I have read on the internet that each PHP-FPM uses 30MB per instance, but I have also been told that each worker in each instance is 30MB so 5 workers can be 150MB.
Doe anyone have any practical knowledge of how much a typical PHP-FPM setup on a WHM/Cpanel account is?
Will PHP-FPM overall use less RAM?
I am trying to figure out if my server is best on PHP-FPM or suPHP because of the RAM available.
try their forum they would have more idea, definitely nothing to do with virtualmin/webmin. For one I have no idea on what cpanel ‘modify’ on installation so some ‘stock’ ideas wont work due to many unknown variables
It depends on what applications are being used. For example, if you’re running WordPress, then memory usage is dependent upon how many plugins you are using.
You can run PHP-FPM in 3 modes, on-demand, dynamic and static. Which mode you choose would be based on the expected number of requests per second and the availability of memory on the server. On busy websites the speed at which you can receive and finish a request defines the overall performance as queuing requests increases load and degrades performance very quickly.
Top line in my opinion is that PHP-FPM is much more reliable and handles many more requests per second than any other process manager I’ve encountered in the past. It’s very easy to configure and if you have the time and the resources to fine tune, it works very well. Virtualmin handles it very well too … just saying
This is a useful guide if you’re interested in tuning php-fpm:
Is the server running out of memory with suPHP, or is it just not responding to requests very quickly?
The server is not running out of memory, but request from PHP-FPM would be quicker. Ideally I would like everything on PHP-FPM, but VPS are still stingy with RAM. If my server would handle all accounts on PHP-FPM then I would convert them all.
In cpanel there is a button that will convert all accounts to PHP-FPM and I keep wondering if there is a single button for conversion, then it would be resonable to assume the resource usage would be the same as all the accounts being on suPHP.
You can see what the average size of the PHP processes is, if you modify this to work with suPHP processes (change php-fpm to whatever the process name is):