Extending FIM Timeouts
When building out your deployment there may be cases where you want to extend the default timeouts used in the system. A key scenario of this might be if you create a separate Administrators portal for your FIM Admins. This could be used for running large reporting queries or making configuration changes like adding\removing large sets.
If you find that the operation you are attempting to complete takes more than 60s then to resolve this you will need to extend the various timeouts in the system. Below is a breakdown of the various timeouts that you can configure in the system.
Configuration File Locations
- Sync - %ProgramFiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service\Bin\miisserver.exe.config
- Web Service - %ProgramFiles%\Microsoft Forefront Identity Manager\2010\Service\Microsoft.ResourceManagement.Service.exe.config
- Password Client - %ProgramFiles%\Microsoft Forefront Identity Manager\2010\Password Reset Client Service\PwdMgmtProxy.exe.config
- Portal - C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config
Timeout Attributes
- dataReadTimeoutInSeconds – The read timeout used in SQL connections by the Web Service
- dataWriteTimoutInSeconds – The write timeout used in SQL connections by the Web Service
- timeoutInMilliseconds – The timeout used by our Web Service client when communicating witghg the Web Service
Steps
- Open the configuration file (see above for configuration file locations)
- Extend the SQL timeouts – This only applies to the Web Service configuration file
- <resourceManagementService externalHostName="MySERVER" dataReadTimeoutInSeconds="300" dataWriteTimeoutInSeconds="300" />
- Extend the Client timeouts – This applies to the Portal. Password Client, & Sync Client
- <resourceManagementClient resourceManagementServiceBaseAddress="MySERVER" timeoutInMilliseconds="300000" />
- Restart the service – Net stop & Net Start the service for each server that you modified the configuration for (FIMService, FIMSynchronizationService, & W3SVC)
Note: These timeouts can be different on different client & webservers. So for instance in my previous post I may only want to extend the timeout for my Admin Portal which Admins & Sync use. Then I would only modify it on FIMAdminPortal.contoso.com
Bonus: If you find yourself extending timeouts significantly you may find that the UI will still timeout, but your operation will still be performed. In this case there is a timeout from ASP.Net which is causing the UI to timeout. This is not required, but will prevent the UI from displaying an error.
- Open your web.config
- Locate the httpRuntime node
- Add the executionTimeout attribute (Default is 110 seconds)
- <httpRuntime maxRequestLength="51200" executionTimeout="300" />
Comments
- Anonymous
March 29, 2011
The comment has been removed