IIS 7 and Above
The first access is slow + PHP + IIS7
Last post Oct 26, 2009 12:31 PM by don.raman
Oct 23, 2009 05:34 PM|Zepelini|LINK
I have a web site in PHP + FastCGI running on IIS 7.0. The overall perfomance is good, but always the first access is very slow. How to solve this problem? Is it about recycling app pool? I use default setting for app pool. I am new in IIS, any help is
welcome! Sorry about any english error.
Oct 23, 2009 09:23 PM|ksingla|LINK
If the request ends up creating a new IIS worker process which will in turn create a new PHP proces, start time and initialization time is definitely going to add up. New
appwarmup extension which can be used with IIS 7.5 can help with this by executing set of URLs before apppool is reported as started. Just out of curiosity, which application are you running? How much time the first request is taking?
Oct 24, 2009 12:18 PM|don.raman|LINK
Yes Kanwal is right. There is some warm-up time involved if IIS is not ready to serve PHP request. And Application Warm-up extension can help solving this.
This is not relevant for this discussion but we also have WINCACHE extension for PHP which helps in improving PHP performance overall (though not a warm-up solution). But overall your PHP application will run fast. You can download it from
http://www.iis.net/extensions/WinCacheForPHP. Details about this extension can be found at
http://learn.iis.net/page.aspx/678/using-windows-cache-extension-for-php/. Again this would help you run your PHP application faster. This is not a startup performance boost solution. If you haven't tried it give it a try.
Oct 26, 2009 11:04 AM|Zepelini|LINK
Thank you for the answer Kanwal, the application is our intranet web site. The first request is taking almost 20s. Is this extension only for IIS 7.5?
Oct 26, 2009 11:11 AM|Zepelini|LINK
Thank you Don. I will try it.
Oct 26, 2009 12:31 PM|don.raman|LINK
Is this extension only for IIS 7.5?
Yes Zepelini, the extension is only for IIS7.5 which means you will need a Windows7 machine to take advantage of it.