How to Troubleshoot HTTP Agent Exhaustion in Node.js

This article explains how HTTP Agent Exhaustion affects Node.js applications when unresponsive upstream services leave outbound sockets occupied. With unlimited sockets and no timeouts, connections and listeners continually increase, causing delays and failures. Using yCrash diagnostics, teams can distinguish this issue from listener leaks and resolve it by limiting sockets, adding timeouts, and isolating agents.