question

Lavid-0159 avatar image
0 Votes"
Lavid-0159 asked SamWu-MSFT commented

IIS spawns many fastcgi php processes while pressing F5 for refreshing site

Hello,

we use a IIS 8.5.9600.16384 with fast-cgi and PHP 7.3.4 64bit in a larger productive environment. Now we locate a problem with the fast cgi processes in the task manager.

Normally the IIS spawns 5-6 PHP-cgi.exe processes and everything looks good, but if you open any site and press often F5 or hold the F5 button down, the IIS spawns many PHP-cgi.exe processes. At the end the IIS hit the limit (in our case 100 instances) and you see 100 PHP-cgi.exe processes in the task manager. Now the server is extremly slow. After some time (2-3 min.) some processes disappear from the task manager.

If you reload the page with STRG+R or if you call annother page, the IIS doesn't spawn new PHP-cgi.exe processes. It only happens if you use F5.

Why does this happen?

How we can prevent it?

windows-server-iis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Lavid-0159 From the information you posted, it is difficult to knbow why so many PHP-cgi.exe are spawned. You can check whether you can view the relevant information in PHP-cgi.exe. About how to prevent it, you can try configure PHP Process Recycling Behavior.


0 Votes 0 ·

0 Answers