Last Updated: February 25, 2016
·
638
· montanaflynn

Increase Node.js network connections

Been writing a lot of high throughput client/server apps lately and seen a lot of performance optimization possible with this little config. Make sure to test in your environment to find your magic int.

// increase nodejs maximum socket connections (defaults 5)
require("http").globalAgent.maxSockets = 10;