- Need to install application initialization module, if IIS 7.5 it's a separate download or WPI, included in IIS 8
- Set startMode to AlwaysRunning on application pool
- Open configuration editor in IIS on server root
- Select system.applicationHost/applicationPools
- Click edit items
- Find app pool, select and then change startMode in lower pane to alwaysRunning
- Hit Apply This changes C:\Windows\System32\inetsrv\config\applicationHost.config
- Set applicationDefault preloadEnabled on site
- Open configuration editor in IIS on server root
- Select system.applicationHost/sites
- Click edit items
- Find site and select
- Expand applicationDefaults in lower pane
- change preloadEnabled to true
- Hit Apply This changes C:\Windows\System32\inetsrv\config\applicationHost.config
- Note: This only changes the defaults for new apps, you may need to change the existing ones yet. You may not need step 3 if apps already exist…
- Set preloadEnabled on site
- Open C:\Windows\System32\inetsrv\config\applicationHost.config
- Find site you're looking for <site name="www.domain.com" id=…
- Add preloadEnabled="true" to first application element tag
- You should see a <applicationDefaults preloadEnabled="true" /> under the site element if you performed step 3
- Restart IIS
- Set initalizationPage on site and doAppInitAfterRestart
- Open configuration editor in IIS on desired site
- Select system.webServer/applicationInitialization
- Change from to ApplicationHost.config if you want to create a location element in C:\Windows\System32\inetsrv\config\applicationHost.config, otherwise the change will go in the web.config
- Set doAppInitAfterRestart to true
- Click edit items
- Click add
- Enter path for initializationPage ( /folder/page?param=something ), leave hostname blank (I think…)
- Click apply
CHANGE IDLE TIME_OUT
IN ADVANCED SETTINGS ON APPPOOL TO 0
No comments:
Post a Comment