Asked by:
WSUS Service - Deadlock SUSDB Database

Question
-
When I try access the MMC of WSUS receive the following error:
Analisys:
When i started the WSUS service occurred the problem because the start of WSUS service get a Stored procedure (exec spResetStateMachineAndReEvaluate;1) in SUSDB database causing deadlock and causing the error of print above.
I was Finished or killing the process to resolve the problem.
Exist some correction or workaround?
Thursday, June 1, 2017 1:45 PM
All replies
-
My script will fix this issue.
Have a peek at my Adamj Clean-WSUS script. It is the last WSUS Script you will ever need.
http://community.spiceworks.com/scripts/show/2998-adamj-clean-wsus
What it does:
1. Remove all Drivers from the WSUS Database.
2. Shrink your WSUSContent folder's size by declining superseded updates.
3. Remove declined updates from the WSUS Database.
4. Clean out all the synchronization logs that have built up over time (configurable, with the default keeping the last 14 days of logs).
5. Compress Update Revisions.
6. Remove Obsolete Updates.
7. Computer Object Cleanup (configurable, with the default of deleting computer objects that have not synced within 30 days).
8. Application Pool Memory Configuration to display the current private memory limit and easily increase it by any configurable amount.
9. Run the Recommended SQL database Maintenance script on the actual SQL database.
10. Run the Server Cleanup Wizard.
It will email the report out to you or save it to a file, or both.
Although the script is lengthy, it has been made to be super easy to setup and use. There are some prerequisites and instructions at the top of the script. After installing the prerequisites and configuring the variables for your environment, simply run:
.\Clean-WSUS.ps1 -FirstRun
and then
.\Clean-WSUS.ps1 -InstallTask
If you wish to view or increase the Application Pool Memory Configuration, you must run it with the required switch. See Get-Help .\Clean-WSUS.ps1 -Examples
If you're having trouble, there's also a -HelpMe option that will create a log so you can send it to me for support.Adam Marshall, MCSE: Security
http://www.adamj.org- Proposed as answer by Anne HeMicrosoft contingent staff Thursday, June 22, 2017 1:32 AM
Friday, June 2, 2017 12:59 AM -
Hi Wellington,
Is the WSUS server on Server 2012 or Server 2012R2, if yes, please check if it installed KB3159706 recently, after installing the KB, we need to do manual steps to finish the installing, otherwise, the WSUS console will crash:
Best Regards,
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Anne HeMicrosoft contingent staff Thursday, June 22, 2017 1:32 AM
Friday, June 2, 2017 8:53 AM -
Hi Wellington,
Just to check if the above reply could be of help, if yes, you may mark useful ones as answer, if not, welcome to feedback.
Best Regards,
Anne
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Thursday, June 22, 2017 1:33 AM