Create a gist now

Instantly share code, notes, and snippets.

@Gazler /
Last active Feb 10, 2018

What would you like to do?
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
ulimit -n 4000000
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
sysctl -w net.core.rmem_max=16384
sysctl -w net.core.wmem_max=16384
sudo dpkg -i erlang-solutions_1.0_all.deb
yes | sudo apt-get update
yes | sudo apt-get install elixir esl-erlang build-essential git gnuplot libtemplate-perl
tar -xvf tsung-1.6.0.tar.gz
cd tsung-1.6.0/
sudo make install
cd ..
git clone -b bench
echo "root soft nofile 4000000" >> /etc/security/limits.conf
echo "root hard nofile 4000000" >> /etc/security/limits.conf

Gazler commented Sep 7, 2016

sudo sysctl -w net.ipv4.ip_local_port_range="1024 64000"


Gazler commented Sep 7, 2016

Find out the number of connected sockets:

lsof -n -p <pid> | wc -l

Find out the ulimit of a process:

cat /proc/<pid>/limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment