menu

Questions & Answers

cgi/fastcgi process - 0% CPU and N% Memory?

I have php wordpress website hosted on IIS, have been using FastCGI, below is my fastCGI configuration

enter image description here

Below is screenshot of task manager enter image description here

There are many fastCGI processes that are using 0% CPU but consuming certain portion of RAM, is this ok ? or there is any misconfiguration due to which this is happening

I did research online to find reason for same, but did not found anything.

Comments:
2023-01-07 20:29:26
I don't know the details about this, but even so - they are using only about 15MB per process. This is minimal and would be their idle state. Are you having any issues with the server or errors from the application?
2023-01-07 20:29:26
@NigelRen, My website is loading slow that's only observation , No error found in event logs
Answers(1) :

As most web servers do, IIS uses its php processes multiple times before restarting them. It leaves idle processes running so it can serve incoming requests with out the extra latency delay of spinning up new processes.

Comments:
2023-01-07 20:29:26
But this is more like a thing from FastCGI specification than any web server, en.wikipedia.org/wiki/FastCGI "Instead of creating a new process for each request, FastCGI uses persistent processes to handle a series of requests. These processes are owned by the FastCGI server, not the web server.[1]"