Hello,
Intermittent failures under high concurrency often point to ephemeral port exhaustion or TCP/IP resource limits. Windows assigns ephemeral ports from a range defined in HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort. If the range is too narrow or sockets linger in TIME_WAIT, new connections fail. You can confirm this by running netstat -ano during peak load and checking how many connections are stuck in TIME_WAIT. Performance Monitor counters like TCPv4\Connections Reset and TCPv4\Connections Established will also show whether resets spike under load. Event Viewer entries such as Event ID 4227 or 4231 are direct indicators of resource exhaustion. If confirmed, increase MaxUserPort to 65534 and reduce TcpTimedWaitDelay to 30 seconds in the same registry path. Also check WinHTTP’s MaxConnectionsPerServer under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp, as a low value can cap concurrency. IIS or application-level pooling misconfigurations can further amplify these limits, so review those settings as well.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
HP.