Works on this device
Connection Saturation Calculator
Check how close your connection limits are to being full. Compare the count in use with each limit, find the one that fills first, see when a growing count or a leak reaches its limit, and work out the local ports that outgoing connections hold. You type every figure.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out. Share of each limit in use is the first choice.
- Fill one row for each place with a limit: the load balancer, the web server, the application pool, the database. Type the count in use at the busiest time and the limit from its settings.
- Set your warning level, such as 80%.
- Choose Calculate. The limit with the largest share in use is the one that fills first.
The formulas
- Share in use = in use ÷ limit. Headroom = limit − in use.
- Growth before the limit = limit ÷ in use − 1: how much the traffic can grow before that limit is full.
- Time until a level = (level − in use now) ÷ net growth each second.
- Ports in use = new connections each second × (time open + time in TIME_WAIT). This is Little's law: the mean number in a system = arrival rate × mean time in it.
Worked examples
Limits: a load balancer at 4,200 of 10,000 (42%), web server workers at 310 of 400 (77.5%) and a database at 160 of 200 (80%). The database fills first. The traffic can grow by 200 ÷ 160 − 1 = 25% before it is full.
Growth: 120 connections in use, a limit of 200 and a net growth of 4 each second reach the limit in (200 − 120) ÷ 4 = 20 seconds, and a warning level of 80% (160) in 10 seconds.
Ports: 200 new connections each second to one destination, each open 2 seconds and then 60 seconds in TIME_WAIT, hold 200 × 62 = 12,400 ports. The range 32768 to 60999 has 28,232 ports, so about 43.9% is in use, and the range allows at most 28,232 ÷ 62 ≈ 455.4 new connections each second.
Other tools for the same subject
- To work out how many connections are open at once from a rate and a time, from users, or from a list of sessions, use the Concurrent Connection Calculator.
- To size a pool of worker threads, use the Thread Pool Size Calculator.
- For the data rate of a link and how much of it is in use, use the Bandwidth Calculator.
Limits you should know
- The counts and limits are the ones you type. The tool reads no server, no monitoring and no settings.
- Counts at the busiest moment are higher than averages. Use counts from your busiest time and keep room to spare.
- The example port ranges are common defaults, not facts about your system. TIME_WAIT is kept only by the side that closes first.