We have a fairly weak server - 2 cores of Xeon Gold 6132.
Until recently the server didn't have much traffic but now we added a web page that generates more traffic than usual.
This is the number of PHP FastCGI instances I see in Task Manager:
I am using the non-thread-safe version of PHP (8.2).
Now the server is really slowing down. Is there a way to adjust the way IIS and PHP work so that it will work better? Perhaps only allow up to 2 FastCGI instances to work simultaneously? Will that even make it work better? I was thinking that what's causing the extreme slowdown is the fact that currently IIS allows way more FastCGI instances than the number of cores. (There is sufficient RAM)
I'm just not sure what are the optimal settings for the FastCGI in IIS (10) for this setup, or maybe in general - how many max instances per core, how many number of requests per instance etc.
Instance MaxRequests
is 10000 but I tried several other values with no change in performance - 200, 400, 1000, 5000