C# PruneConnectionPoolGroups内存不足异常
我们有一个windows服务正在抛出错误并关闭,错误如下:C# PruneConnectionPoolGroups内存不足异常,c#,sql-server,system.data,C#,Sql Server,System.data,我们有一个windows服务正在抛出错误并关闭,错误如下: Failed to stop service. System.InvalidOperationException: An unhandled exception was detected ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Data.ProviderBas
Failed to stop service. System.InvalidOperationException: An unhandled exception was detected ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Data.ProviderBase.DbConnectionFactory.PruneConnectionPoolGroups(Object state)
at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.TimerQueue.AppDomainTimerCallback(Int32 id)
我在PruneConnectionPoolGroups中查找了这个错误,有迹象表明,当池试图在事务完成之前关闭连接时,会导致竞争条件,但这只是猜测。以前有人见过这个错误并找到了解决方法吗?最后你是如何解决的?