Member-only story
Benchmark with Tsung 1.7.0 on Ubuntu 18.04
Tsung (formerly IDX-Tsunami) is a distributed load testing tool. It is protocol-independent and can currently be used to stress HTTP, WebDAV, SOAP, PostgreSQL, MySQL, AMQP, MQTT, LDAP and Jabber/XMPP servers.
It is distributed under the GNU General Public License version 2. http://tsung.erlang-projects.org/user_manual/introduction.html
Install to Ubuntu 18.04
Install libs
sudo apt-get updatesudo apt-get install erlang -y
sudo apt-get install libyaml-dev -y
sudo apt-get install gnuplot libtemplate-perl python2.7 python-pip libssl-dev autoconf -y
Install Tsung 1.7.0
git clone https://github.com/processone/tsung.git
cd tsung
./configure
make
sudo make install
Install location
- Execute file: /usr/bin/tsung
- Library files: /usr/lib/tsung
- Data files: /usr/share/tsung
Advance config
Add two lines at the end of /etc/security/limits.conf
sudo nano /etc/security/limits.conf
* soft nofile 1000000
* hard nofile 1000000Put the domain name into /etc/hosts if you don’t want the DNS overhead and you only want to test the target server
Increase the maximum number of open files and customize TCP settings in /etc/sysctl.confnet.ipv4.tcp_tw_reuse = 1…