Tuning the Server

From SponsorBlock
Revision as of 17:20, 5 December 2021 by Ajay (talk | contribs) (Raise ulimit)
Jump to navigation Jump to search

Increase ulimit

ulimit -n 65535

Increase the ports available

sysctl -w net.ipv4.ip_local_port_range="9000 65500"

And add this line to /etc/sysctl.conf

net.ipv4.ip_local_port_range=9000 65500

Increase max connections

sysctl -w net.core.somaxconn=324000

And add this line to /etc/sysctl.conf

net.core.somaxconn=324000