c# - PruneConnectionPoolGroups 中的内存不足异常
问题描述
我们有一个 Windows 服务抛出错误并关闭并出现以下错误:
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 中查看了这个错误,并且有一些迹象表明当池在事务完成之前尝试关闭连接时会导致竞争条件,但这是一个猜测。有没有人见过这个错误并找到了解决方案?
解决方案
推荐阅读
- jquery-bootgrid - jquery bootgrid 无法设置样式并且按钮无法工作
- javascript - 从 JSON 对象中选择值,其中键入脚本类型的键
- neo4j - 删除 neo4j 中的重复关系 - 这是正确的吗?
- python - 从python中的命令行传递参数
- php - 通过 AWS SES 发送日历邀请 - 错误:重复标头“内容类型”
- css - 从线向上滑动动画
- python - 试图在 usecols Pandas 中传递用户输入
- compiler-construction - 如何找到yacc规则的字符串?
- python - Python - 如果条件为 FALSE,则移至下一个列表元素
- python-3.x - 从整数列表中找到偶数的和