WSUS的性能

Posted by baalchina on April 7, 2019

20190411

现在17g了…

19g

20190410

09:00 现在已经12g内存了。。。

12g内存

22:16 现在是16g内存… 16g内存

20190410

早上发现wsus pool这个应用程序池疯狂的崩溃,每次崩溃,wsus控制台就进不去了。

google一番,现在把他的专用内存限制修改为0,即不限制,看看效果。

改完,iis work process立马干掉了3g内存,还在不断增长中…

20190409

早上起来,看到sql server的数据库已经10g多了,但是wsus管理控制台还很坚挺的活着…

昨天一台Windows 2019 Datacenter服务器,当WID的数据到9G左右的时候,WSUS管理器就出错了。报告连接错误。日志如下:

WSUS 管理控制台无法通过远程 API 连接到 WSUS 服务器。 

请确保 Update Services 服务、IIS 和 SQL 正在该服务器上运行。如果该问题仍然存在,请尝试重新启动 IIS、SQL 和 Update Services 服务。

WSUS 管理控制台无法通过远程 API 连接到 WSUS 服务器。 

请确保 Update Services 服务、IIS 和 SQL 正在该服务器上运行。如果该问题仍然存在,请尝试重新启动 IIS、SQL 和 Update Services 服务。

WSUS 管理控制台无法通过远程 API 连接到 WSUS 服务器。 

请确保 Update Services 服务、IIS 和 SQL 正在该服务器上运行。如果该问题仍然存在,请尝试重新启动 IIS、SQL 和 Update Services 服务。

System.Net.Sockets.SocketException -- 远程主机强迫关闭了一个现有的连接。

Source
System

Stack Trace:
   在 System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
** this exception was nested inside of the following exception **


System.IO.IOException -- 无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。。

Source
System

Stack Trace:
   在 System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   在 System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   在 System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
** this exception was nested inside of the following exception **


System.Net.WebException -- 基础连接已经关闭: 服务器关闭了本应保持活动状态的连接。

Source
System.Web.Services

Stack Trace:
   在 System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   在 Microsoft.UpdateServices.Internal.DatabaseAccess.ApiRemotingCompressionProxy.GetWebResponse(WebRequest webRequest)
   在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   在 Microsoft.UpdateServices.Internal.ApiRemoting.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, Int32 publicationState)
   在 Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPSearchUpdates(String updateScopeXml, String preferredCulture, ExtendedPublicationState publicationState)
   在 Microsoft.UpdateServices.Internal.BaseApi.Update.SearchUpdates(UpdateScope searchScope, ExtendedPublicationState publicationState, UpdateServer updateServer)
   在 Microsoft.UpdateServices.UI.AdminApiAccess.UpdateManager.GetUpdates(ExtendedUpdateScope filter)
   在 Microsoft.UpdateServices.UI.AdminApiAccess.WsusSynchronizationInfo.InitializeDerivedProperties()
   在 Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetSyncInfoRow(WsusSynchronizationInfo syncInfo)
   在 Microsoft.UpdateServices.UI.SnapIn.Pages.SyncResultsListPage.GetListRows()

初步怀疑是WID的性能问题,今天用SQL Server,发现到4.9g左右的时候,同样的问题也报错。

WSUS 管理控制台无法通过远程 API 连接到 WSUS 服务器。 

请确保 Update Services 服务、IIS 和 SQL 正在该服务器上运行。如果该问题仍然存在,请尝试重新启动 IIS、SQL 和 Update Services 服务。

System.Net.WebException -- 请求因 HTTP 状态 503 失败: Service Unavailable。

Source
System.Web.Services

Stack Trace:
   在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   在 Microsoft.UpdateServices.Internal.ApiRemoting.ExecuteSPGetConfiguration()
   在 Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPGetConfiguration()
   在 Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration.Load()
   在 Microsoft.UpdateServices.Internal.ClassFactory.CreateWellKnownType(Type type, Object[] args)
   在 Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
   在 Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetConfiguration()
   在 Microsoft.UpdateServices.UI.AdminApiAccess.CachedObject.RefreshCache()
   在 Microsoft.UpdateServices.UI.AdminApiAccess.CachedObject.GetFromCache()
   在 Microsoft.UpdateServices.UI.AdminApiAccess.PermissionsManager.IsPermitted(UserOperation operation)
   在 Microsoft.UpdateServices.UI.SnapIn.Scope.UpdatesSummaryScopeNode.RefreshPermissions()
   在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.AddChildNodes()
   在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.ConnectToServerAndPopulateNode(Boolean connectingServerToConsole)
   在 Microsoft.UpdateServices.UI.SnapIn.Scope.ServerSummaryScopeNode.ResetScopeNode()

检查了下,发现WSUS Pool这个应用程序池挂了。启动它就好了。

具体问题,明天继续观察。