网络服务器环境:Windows 2008 R2
数据库服务器环境:SQL Server 2008
背景:我想使用 sql profiler 来跟踪导致连接泄漏的连接。
我使用的 SQL Server Profiler 事件:
- 审核登录(列:EventSubClass、EventClass、EventSequence、SPID)
- 审核注销(列:EventSubClass、EventClass、EventSequence、SPID)
- PRC:Complete(列:TextData、EventSequence、SPID)
我发现了一条奇怪的记录,我猜是连接泄漏,但不太确定,记录是:
SPID 65,
When Audit Login, EventSubClass is 2-pooled (meaning it is pooled connection) and EventSequence is 69354
When Audit Logout, EventSubClass is 1-non pooled (meaning it is non-pooled connection) and EventSequence is 69848 (from 69354 to 69848 meaning there are some other event logs)
我可以说这个连接正在泄漏吗?
先感谢您。