aboutsummaryrefslogtreecommitdiffstats
path: root/csit/start-s3p-tests.sh
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2023-10-20 16:32:57 +0100
committerSaul Gill <saul.gill@est.tech>2023-10-25 09:24:10 +0000
commitd589fbbdf1592a0230dbbd4d4bb7b4e8ad3f2e7e (patch)
tree78b52bf4ba0e9b74e5be0481011658b5953180bd /csit/start-s3p-tests.sh
parentf2633ef7de167236682f8fe67db0bc9c2427f537 (diff)
Fix issues in scripts for s3ps
Issue-ID: POLICY-4856 Change-Id: I0e69bfe59b1316e738ad78f1b2f9cdefc4e9afe4 Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'csit/start-s3p-tests.sh')
-rwxr-xr-xcsit/start-s3p-tests.sh27
1 files changed, 15 insertions, 12 deletions
diff --git a/csit/start-s3p-tests.sh b/csit/start-s3p-tests.sh
index 1609e4bb..b1bed110 100755
--- a/csit/start-s3p-tests.sh
+++ b/csit/start-s3p-tests.sh
@@ -40,14 +40,20 @@ function install_jmeter() {
sudo apt install -y default-jdk
# Install JMeter
- curl -O https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.3.tgz
- tar -xvf apache-jmeter-5.3.tgz
+ curl -O https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.6.2.tgz
+ tar -xvf apache-jmeter-5.6.2.tgz
+ mv apache-jmeter-5.6.2 apache-jmeter
+
+ # Define your desired heap size values
+ echo 'export JVM_ARGS="-Xms2g -Xmx4g"' > apache-jmeter/bin/setenv.sh
+ echo 'export HEAP="-Xms1G -Xmx2G -XX:MaxMetaspaceSize=512m"' >> apache-jmeter/bin/setenv.sh
+
# Remove unnecessary files
- rm -rf apache-jmeter-5.3/docs apache-jmeter-5.3/printable_docs
+ rm -rf apache-jmeter/docs apache-jmeter/printable_docs
# Install CMD Runner
- cd apache-jmeter-5.3/lib
+ cd apache-jmeter/lib
curl -O https://repo1.maven.org/maven2/kg/apc/cmdrunner/2.2.1/cmdrunner-2.2.1.jar
# Install Plugin Manager
@@ -59,13 +65,11 @@ function install_jmeter() {
java -jar cmdrunner-2.2.1.jar --tool org.jmeterplugins.repository.PluginManagerCMD install-all-except jpgc-hadoop,jpgc-oauth,ulp-jmeter-autocorrelator-plugin,ulp-jmeter-videostreaming-plugin,ulp-jmeter-gwt-plugin,tilln-iso8583
# Move JMeter to /opt
- sudo cp -r ../../apache-jmeter-5.3 /opt/
+ sudo cp -r ../../apache-jmeter /opt/
# Add JMeter Path Variable
- nano .profile
- JMETER_HOME="/opt/apache-jmeter-5.3"
- PATH="$JMETER_HOME/bin:$PATH"
- source ~/.profile
+ export JMETER_HOME="/opt/apache-jmeter"
+ export PATH="$JMETER_HOME/bin:$PATH"
}
function on_exit() {
@@ -107,7 +111,7 @@ then
echo "Executing tests"
echo "==========================="
cd ${TESTDIR}/automate-performance || exit
- nohup apache-jmeter-5.3/bin/jmeter -n -t $2 -l s3pTestResults.jtl
+ nohup jmeter -n -t $2 -l s3pTestResults.jtl
# TODO: Generate report on on_exit()
@@ -117,5 +121,4 @@ then
teardown
else
echo "Invalid arguments provided. Usage: $0 [option..] {run | uninstall}"
-fi
-
+fi \ No newline at end of file