Overview
This tutorial covers how to disable app pool recycling in IIS to improve initial load response of MindTouch when running on Windows. This will also alleviate FastCGI errors.
Goal
Once completed, your MindTouch install will load faster after extended periods of inactivity.
Disabling IIS app pool recycling
Within IIS there is a default setting that will stop the app pool for MindTouch if there isn't activity after 20 minutes. This can cause a FastCGI error to pop up when loading the MindTouch site after a period of inactivity. Here is a way of disabling the app pool recycling and configuring IIS to recycle when memory usage gets too high with MindTouch.
Windows 2003
- Expand the Application Pool in the IIS manager
- Right click on the MindTouch App Pool and select properties
- Uncheck Recycle worker processes in minutes which is the first option on the Recycling tab
- Next Check the Maximum used memory (in megabytes) and change the memory amount to roughly 40% of the total RAM on the server, this value can vary depending on the other applications that you have on the server
- The last thing to do is click the Performance Tab and uncheck the Shutdown worker processes after being idle for (time in minutes)
Windows 2008
- Open the IIS Manager and click on Application Pool
- Right click on the MindTouch app pool and select Recycling
- Uncheck Regular time intervals (in minutes)
- Check the checkbox next to Virtual memory usage (in kb) and set it to about 40% of the total RAM on the server, this value can vary depending on the other applications that you have on the server
- Next click Next and then Finish
- You can also right click on MindTouch App pool -> Advanced Settings and change the Idle time-out (minutes) to 0 and that will disable it
What's Next
The most noticeable improvement will be when the site hasn't been accessed for a while. Disabling the app pool recycling will shave off a significant amount of time from that first load.