Skip to content

Instantly share code, notes, and snippets.

@arduanov
Last active February 20, 2020 23:13
Show Gist options
  • Save arduanov/6c48bef290f15ff07c0571fc1449fc6c to your computer and use it in GitHub Desktop.
Save arduanov/6c48bef290f15ff07c0571fc1449fc6c to your computer and use it in GitHub Desktop.
ulimit
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
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