I'm running PHP 5.4 (yes, I know it's old and needs to be upgraded) as a FastCGI component in IIS 8.5 on Windows Server 2012 R2. While I was tuning the settings I read the https://docs.microsoft.com/en-us/iis/application-frameworks/running-php-applications-on-iis/configure-php-process-recycling-behavior article.
That article recommends setting InstanceMaxRequests and PHP_FCGI_MAX_REQUESTS to 10 000 - but it doesn't explain why. Is there a better strategy to determine what the best value for a specific environment is, or is it safe to hardcode it as 10 000, as per the article?
How do I determine what the best InstanceMaxRequests and PHP_FCGI_MAX_REQUESTS values are for my own environment? How do I work out what values I should use?