25 ms·
I'm sure that your ruby can hold +100k connctions with enough RAM.
by john37386 8y ago
I'm sure that your ruby can hold +100k connctions with enough RAM.
- WJW 8y agoI ran 4 `ab` processes against it, each with 20k concurrent connections, so the maximum amount of connections "should" have been 80k. The fact that the actual number was so close to 65536 makes me very suspicious that there is some kernel level thing at play here. I agree that the ruby program can probably scale up much more with enough RAM.
- john37386 8y agoWas iptables running? Maybe they hit a conntrack limit
- tyingq 8y agoWhat does ulimit -a say?
- andrewmackrodt 8y agoWould this have been affected by the number of available ports on your single loopback address, assuming 127.0.0.1. You'd have to connect via multiple network devices. Edit: comment below clarifies servers.