简体   繁体   中英

Detect open database connections

somewhere in my application I have a memory leak, and I suspect it's because a database connection isn't being correctly closed or disposed of...

in asp.net, is there a way to detect how many database connections there currently are open?

Connection.Close never gets called in my app is the problem - NHibernate handles all of that, as far as I'm aware.

To detect open connections, you can use database management tool to connect to your test database and check active sessions there.

You can also use Performance Monitor to monitor open connections for .NET Framework applications.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM