Skip to content

Instantly share code, notes, and snippets.

@alexcmd
Last active December 17, 2019 20:48
Show Gist options
  • Save alexcmd/6430dc3372121129783fd3168d77ddce to your computer and use it in GitHub Desktop.
Save alexcmd/6430dc3372121129783fd3168d77ddce to your computer and use it in GitHub Desktop.
sysctl -w fs.file-max=11000000
sysctl -w fs.nr_open=11000000
ulimit -n 11000000
sysctl -w net.ipv4.tcp_mem="100000000 100000000 100000000"
sysctl -w net.core.somaxconn=10000
sysctl -w net.ipv4.tcp_max_syn_backlog=10000
# --- alternative ---
# sysctl -w fs.file-max=14000000
# sysctl -w fs.nr_open=14000000
# ulimit -n 14000000
# sysctl -w net.ipv4.tcp_mem="100000000 100000000 100000000"
# sysctl -w net.core.somaxconn=20000
# sysctl -w net.ipv4.tcp_max_syn_backlog=20000
# sysctl -w net.ipv4.ip_local_port_range="1025 65535"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment