4 ms·
Do people seriously run out of ephemeral ports before they run out of server memory?
by koenigdavidmj 14y ago
Do people seriously run out of ephemeral ports before they run out of server memory?
- Dobbs 14y agoYes. In some circumstances.
- ajross 14y agoThere are ~32k ephemeral ports. Typical servers have ~32G of memory. It's certainly not hard to imagine a request architecture where a single request can be handled in less than 1MB of per-request memory.
- koenigdavidmj 14y agoYes, but you don't need a separate port for every request. Is it reasonable to believe that a single client will have that many conns open?
- charliesome 14y agoIn this case, they were reverse proxying with an old nginx that only supported HTTP/1.0 for backend connections. So they do need an ephemeral port for each request.
- bluesmoon 14y agoso we've made a few changes since I'd initially done the ephemeral port tuning, the most important being switching to unix domain sockets rather than TCP. with that, we probably no longer need the ephemeral port setting.