Skip to content

Instantly share code, notes, and snippets.

@derinbay
Created February 14, 2019 16:04
Show Gist options
  • Save derinbay/b7c52f5262f07e0cc050c7dee507f3ff to your computer and use it in GitHub Desktop.
Save derinbay/b7c52f5262f07e0cc050c7dee507f3ff to your computer and use it in GitHub Desktop.
ubuntu_jmeter_launch_script
slave
---------
#!/bin/bash
sudo apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
sudo apt install openjdk-8-jre-headless -y
sudo apt-get install -y jmeter
wget -O jmeter-plugins-manager-1.3.jar http://search.maven.org/remotecontent?filepath=kg/apc/jmeter-plugins-manager/1.3/jmeter-plugins-manager-1.3.jar
sudo mv jmeter-plugins-manager-1.3.jar /usr/share/jmeter/lib/ext/
wget https://jmeter-plugins.org/files/packages/jpgc-casutg-2.6.zip
wget https://jmeter-plugins.org/files/packages/jpgc-tst-2.5.zip
sudo unzip -o jpgc-casutg-2.6.zip -d /usr/share/jmeter/
echo "server.rmi.ssl.disable=true" >> /usr/share/jmeter/bin/user.properties
echo "httpclient4.retrycount=1" >> /usr/share/jmeter/bin/user.properties
echo "hc.parameters.file=hc.parameters" >> /usr/share/jmeter/bin/user.properties
sudo su
echo "http.connection.stalecheck$Boolean=true" >> /usr/share/jmeter/bin/hc.parameters
sudo reboot
jemter-server
master
---------
#!/bin/bash
sudo apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
sudo apt install openjdk-8-jre-headless -y
sudo apt-get install -y jmeter
wget -O jmeter-plugins-manager-1.3.jar http://search.maven.org/remotecontent?filepath=kg/apc/jmeter-plugins-manager/1.3/jmeter-plugins-manager-1.3.jar
sudo mv jmeter-plugins-manager-1.3.jar /usr/share/jmeter/lib/ext/
wget https://jmeter-plugins.org/files/packages/jpgc-casutg-2.6.zip
wget https://jmeter-plugins.org/files/packages/jpgc-tst-2.5.zip
sudo unzip -o jpgc-casutg-2.6.zip -d /usr/share/jmeter/
echo "remote_hosts=52.59.54.182,18.185.102.231,52.28.198.189,18.184.79.11,18.194.61.205" >> /usr/share/jmeter/bin/user.properties
echo "server.rmi.ssl.disable=true" >> /usr/share/jmeter/bin/user.properties
echo "httpclient4.retrycount=1" >> /usr/share/jmeter/bin/user.properties
echo "hc.parameters.file=hc.parameters" >> /usr/share/jmeter/bin/user.properties
sudo su
echo "http.connection.stalecheck$Boolean=true" >> /usr/share/jmeter/bin/hc.parameters
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment