This article is based on the following TN Forum thread: https://social.technet.microsoft.com/Forums/en-US/d384950c-3b12-4d47-82c6-07e1e83666b9/your-request-could-not-be-processed-in-the-allowed-timeframe?forum=ilm2
You get this error each time when hit the Search button in every resources pages (except for the search button from the Home page)
Your request could not be processed in the allowed timeframe.
The associated URL is http://servername/_layouts/MSILM2/ErrorPage.aspx?errorCode=4000
Try to access the FIM portal from a remote machine (do not surf the portal from the FIM Portal Server)
The exact command to fire in SQL to reindex the FIMService and FIMSynchronizationService DB is:
USE <DataBaseName>GO EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', ' ', 80)" GO
GO
EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', ' ', 80)"
EXEC sp_updatestats GO
Reboot the server.