How To Fix WSUS Application Pool Keeps Stopping

Jason Barrett Jason Barrett | | ConfigMgr

Today I was investigating an issue with SCCM not downloading the latest windows updates.  The first thing I checked was the WSUS Update Services console, When I opened the console I got the below error

An error occurred trying to connect to the wsus server. This error can happen doe a number of reasons. Check connectivity with the server. Please contact your network administrator if the problem persists.

WSUS Application Pool Keeps Stopping

Then a message asking to reset server node.

I opened Internet Information Services (IIS) on the server where WSUS is installed and I could see under ServerName \ Application Pools  the WsusPool was in stopped status.  I started the WsusPool application pool and I could open WSUS again.

wsus application pool stopped

After a few hours I tried to access WSUS again and the error came back.  I checked the WsusPool and it had stopped again. I restarted a few times and I noticed the WsusPool application pool keeps stopping.

I rebooted the server hoping that would resolve the issue, But it did not.  I also ran

WsusUtil.exe reset
WsusUtil.exe postinstall

These commands also did not help.

How To Fix WSUS Application Pool Keeps Stopping

The WSUS application pool keeps stopping because of an issue with the allocated virtual memory limit to the IIS application pool. You will need to increase this limit to 1.8gb (1843200) or 4gb (4194304) then restart IIS for the setting to take affect.

To make the changes needed follow these steps

  1. Open Internet Information Services
  2. Click on Servername then Application Pools
    iis application pools
  3. Scroll to the bottom and left click on WsusPool to select it, then click on advanced settings in the right hand column
    wsuspool application pool
  4. Scroll down to the bottom and click on Virtual Memory Limit
    wsuspool advanced settings
  5. If the value is 0 this means no limit.  On my server it was set to 0, I changed this to 4194304 (4gb) and this resolved my issue. Looks like there was a bug with having the setting set to 0
  6. Click on ok to close the advanced settings screen
  7. Right Click on WsusPool and select recycle
  8. Next you will need to restart the Wsus Server service, or restart your server
  9. Open the WSUS console again and you should not receive any errors