Tuning the Server: Difference between revisions

From SponsorBlock
Jump to navigation Jump to search
(Created page with "==== Increase ulimit ==== ulimit -n 8192 ==== Increase the ports available ==== sysctl -w net.ipv4.ip_local_port_range="9000 65500" And add this line to <code>/etc/sysctl.c...")
 
No edit summary
Line 5: Line 5:
  sysctl -w net.ipv4.ip_local_port_range="9000 65500"
  sysctl -w net.ipv4.ip_local_port_range="9000 65500"
And add this line to <code>/etc/sysctl.conf</code>
And add this line to <code>/etc/sysctl.conf</code>
  net.ipv4.ip_local_port_range="9000 65500"
  net.ipv4.ip_local_port_range=9000 65500


==== Increase max connections ====
==== Increase max connections ====

Revision as of 16:13, 5 December 2021

Increase ulimit

ulimit -n 8192

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