Last active
February 20, 2020 23:13
-
-
Save arduanov/6c48bef290f15ff07c0571fc1449fc6c to your computer and use it in GitHub Desktop.
ulimit
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
echo "fs.file-max=1048576" >> /etc/sysctl.conf | |
echo "net.core.rmem_max = 16777216" >> /etc/sysctl.conf | |
echo "net.core.wmem_max = 16777216" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_rmem = 4096 87380 16777216" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_wmem = 4096 65536 16777216" >> /etc/sysctl.conf | |
sysctl -p | |
echo "* soft nofile 1048576" >> /etc/security/limits.conf | |
echo "* hard nofile 1048576" >> /etc/security/limits.conf | |
echo "root soft nofile 1048576" >> /etc/security/limits.conf | |
echo "root hard nofile 1048576" >> /etc/security/limits.conf | |
mkdir /etc/systemd/system.conf.d/ | |
echo -e ""[Manager]\\nDefaultLimitNOFILE=1048576"" > /etc/systemd/system.conf.d/limits.conf |
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
apt-get update | |
apt-get install -y tsung |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment