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?

  • Run performance testing (load testing), and then you can get your own numbers. Microsoft can only provide an estimate (10000 should work fine in their labs). – Lex Li Aug 28 '18 at 20:49
  • Should the value be high or low if you have a very busy site? – luisdev Feb 15 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.