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
.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
.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.
has been working for 8 years, it is absolutely no problem to write business code in php, and I also know something about architecture. I know how to deal with high concurrency and database optimization, and there are some deficiencies in system tuning or...