linux - socket - maximum limit of active sockets -


i'm using node.js ws(a socket library) handle sockets.
, i've read this link claims vps machine can have 64k client per port. question is, how many active sockets can have on linux vps?
there theoretical limit how many open sockets can linux vps handle?
, bottle neck? ram? or bandwidth?

when computer connects b, both need have single socket allocated. when server accepts connection, copies clients ip address , port new connection. means next client can connect on same socket. need 1 file descriptor on server operation, limit number of file descriptors per process can check ulimit command.

a client needs socket initiate connection. each socket identified 16 bit integer. means can have @ 64k sockets on client side.

since server socket "released" after connection established, can accept more 64k connections.

in theory, can fill server ram file descriptors without problem. in practice, connections made exchange data. real bottleneck bandwidth.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -