How many php7-fpm does the cloud host of 8CPU 16GB open?

generally speaking, according to memory calculation, each php-fpm takes up 30MB, and the system also takes up some memory, but each php-fpm needs to consume cpu, so it is impossible to open so many values calculated by memory at all

.
Apr.03,2021

you still have to adjust it according to the actual situation of the website.

you first take a look at the number of cores on your server. Assuming that it is 4 cores, there will be at most 4 processes processing at the same time

.

re-analyze the bottleneck of the website. If it is related to the database, upgrade the server of the database. Too much php-fpm will not achieve the desired results

assume that the website io is infrequent. Of course, the more memory you have, the more php-fpm you have, the better.

Menu