How to monitor number of connections to a remote computer for ASP.NET application?
I am trying to solve non deterministic hangouts in AST.NET 开发者_StackOverflow社区application. I have a sneaking suspicion that maxconnection limit is reached.
So my question is how can I verify my suspicion? Is there any performance counter or any method like ThreadPool.GetAvailableThreads
to monitor number of simultaneous connections to a remote computer?
Also what does the "number of simultaneous connections" means? As I understand it's count per application domain. However doest it counts socket connection opened in .Net calls?
You can use Fiddler for monitoring http connections or TCPView For monitoring all the connection of the computer.
I am afraid there is no function for counting available connections, because it does depend on whole network infrastructure. You probably does not run out of connections on your computer, but router somewhere in the network will prevent establishing new connections.
精彩评论