How do I get a list of TCP connection statuses for an Azure App Service application?

We have an Azure application service plan with 20 applications.

One application causes port exhaustion. As a result, all applications on the tariff plan lose their connection.

Technical support indicates TIME_WAIT status. TCP communications are predominant when port depletion occurs. To help diagnose and monitor this and future situations, I need a common way to get TCP connections and statuses for each application.

Is it possible? If so, how?

+6
source share
1 answer

I understand that this is not a direct answer to your question, but we have a similar problem, and our approach to using HttpClient has become a factor. If you use a new instance of HttpClient for each of your HTTP requests, you can exhaust the available outgoing connections. We found that the following article is very useful for minimizing the number of outgoing connections using HttpClient: https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/

We are also hoping for a way to view TCP connections from Azure App Services, as Kudu shows "Access Denied" when trying to use netstat.

+4
source

Source: https://habr.com/ru/post/1012654/


All Articles