We got the below error while trying to deploy SharePoint solution
Error occurred in deployment step 'Recycle IIS Application Pool': A timeout has occurred while invoking commands in SharePoint host process.
Thr possible reasons for this error as per MSDN forums are:
1. Less System Resources, possible <6 GB of RAM. (Recommended RAM for SP 2010 is >=6GB)
2. Application Pools might be stopped.
In my case, both these possibilities doesnot apply.
The solution to eliminate this error is:
Increase the Shutdown Time Limit and Startup Time Limit under Application Pool -> Advanced Settings.
This resolved the above error:)