![Ilia's picture Ilia's picture](https://archive.virtualmin.com/system/files/styles/thumbnail/private/pictures/picture-50653-1578044816.jpg?itok=S1y2jTzO)
Does Webmin/Virtualmin distributes resources of the machine in any way? Can I allocate more resources to particular websites?
What is the best value (number )for PHP_FCGI_CHILDREN
?
Status:
Closed (fixed)
Does Webmin/Virtualmin distributes resources of the machine in any way? Can I allocate more resources to particular websites?
What is the best value (number )for PHP_FCGI_CHILDREN
?
Comments
Submitted by JamieCameron on Sun, 03/24/2013 - 13:13 Comment #1
No, Virtualmin doesn't really have a way to distribute machine resources (other than disk quotas). You can impose some limits on a per-process basis for domains at Administration Options -> Edit Resource Limits.
The best value for number of PHP children depends on how many concurrent PHP web requests your site expects to serve. Increasing it will make the site more responsive under load, but use more RAM.
I have 64GB of RAM on 2x CPU Intel Xeon E5-2630 with 600 GB SSD & 8 TB HDD?
Around 10 site in total with resource occupation:
70 % of load for site #1
20% of load for site #2
and the rest, all together is about 10%
What would be the best value of
PHP_FCGI_CHILDREN
for 1, 2 and all the rest?Submitted by JamieCameron on Sun, 03/24/2013 - 14:09 Comment #3
I would set it to 10 for site 1, 3 for site 2, and 1 for all the rest.
Thanks! Is it ok if I put for the big site 32? How is it calculated? 256mb for 1 process?
Submitted by JamieCameron on Sun, 03/24/2013 - 22:08 Comment #5
The memory used per process is hard to calculate, as it depends on the web app you are running, and the amount of sharing that can be done between processes. You have to experiment and see.
Thanks, we'll play!