On this page:
A TCP socket is a specific TCP port on a specific node. Port exhaustion occurs when a node runs out of available ports. When an application stops using a specific port, the port enters a "time-wait state" before it becomes available for use by another application. If a node runs out of available ports to create new connections, the symptom appears as a spike in application errors.
A DevOps engineer is responsible for monitoring the performance of a mission-critical app. She opens the Application Dashboard one day and sees a sudden spike in transaction errors on the Ecom-Tiers and for the entire application. She also sees that response times for the entire app are going down and load is increasing. She decides to investigate.
- She switches over to the Network Dashboard, right-clicks on Ecom-Tier2, and chooses View Metrics. The Host Stack KPIs show an increases in Wait Sockets at the same time as the increase in Error transactions.
- She knows there are a lot of Wait sockets for the entire tier. Now she wants to pinpoint the specific node (or nodes) where these wait sockets are occurring. She returns to the Network Dashboard, clicks on Ecom-Tier2, and clicks on ECOM_T2N1 in the Nodes tab.
- The TCP Socket chart (right) for node ECOM_T2N2 shows that the level of wait sockets is in an acceptable range. She switches over to view ECOM_T2N1.
- The TCP Socket chart for this node shows a significantly high number of Wait sockets. She knows now that the spike in application errors is occurring because this node is running out of available sockets.