Last active
December 17, 2019 20:48
-
-
Save alexcmd/6430dc3372121129783fd3168d77ddce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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