There are cases when you want to know the number of current sessions on your web application. For example, when you are trying to establish a load balance mechanism it is vital to know whether you receive adequate traffic on each individual node.
There are several methods to get current connections:
1- Using the netstat command.
netstat -a -n | find /C “ESTAB”
The response is the number of all the connections with the “Established” state.
2- The more advanced graphical method is using windows performance monitor.
Open start and type Performance Monitor. open the application and from the sidebar choose the Performance Monitor item. On the left side, you will see a graph that shows the Processor Time of the server. First, remove the current metric using the Delete icon on the toolbar, and then click on the Add icon. From the Add Counters dialogue on the left panel, choose Web Service and then select Current Connections. Select the instances (web sites) which you want to monitor and click on the Add>> button. Click the OK button and you will see the statistics on the graph. You can switch the graph type to report to have a better understanding of your current connections.
This metric can be shared through different apps. For example, If you use a monitoring platform like Zabbix you can add this metric to it and view the data in your dashboard without logging into windows.