From e9089de7e9831486ffa56c557afeb4c38a722d45 Mon Sep 17 00:00:00 2001 From: Reiner Jung <reiner.jung@email.uni-kiel.de> Date: Wed, 22 Jun 2022 16:36:54 +0200 Subject: [PATCH] Minor fixes. --- Jenkinsfile | 2 +- .../benchmark-kieker-days-ffi-remote.sh | 3 +- .../benchmark-kieker-days-ffi.sh | 2 ++ frameworks/Kieker/benchmark.sh | 32 ++++++++----------- 4 files changed, 19 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7be9947..fcf00c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,7 +55,7 @@ pipeline { sh ''' cd ${BASE_DIR} sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/all-results.json - compile-results/bin/compile-results results-kieker/results-text.csv all-results.json + compile-results/bin/compile-results results-Kieker/results-text.csv all-results.json echo "put all-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} echo "put partial-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} echo "put relative-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} diff --git a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh index 00331e4..42d36ae 100644 --- a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh +++ b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh @@ -1,6 +1,7 @@ #!/bin/bash -JAVABIN="/localhome/ffi/jdk1.7.0_25/bin/" +JAVA_BIN="/localhome/ffi/jdk1.7.0_25/bin/java" + REMOTEHOST="blade1" REMOTEBASE_DIR="/localhome/ffi/" diff --git a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh index 4e900d0..f3eaf1f 100644 --- a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh +++ b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh @@ -249,3 +249,5 @@ rm -f ${RAWFN}* zip -jqr ${RESULTS_DIR}/worker.zip ${RESULTS_DIR}/worker*.log rm -f ${RESULTS_DIR}/worker*.log [ -f ${BASE_DIR}/nohup.out ] && mv ${BASE_DIR}/nohup.out ${RESULTS_DIR} + +# end diff --git a/frameworks/Kieker/benchmark.sh b/frameworks/Kieker/benchmark.sh index 3a78792..196efed 100644 --- a/frameworks/Kieker/benchmark.sh +++ b/frameworks/Kieker/benchmark.sh @@ -16,20 +16,13 @@ else exit 1 fi -if [ -f "${BASE_DIR}/config" ] ; then +if [ -f "${BASE_DIR}/common-functions.sh" ] ; then . "${BASE_DIR}../common-functions.sh" else - echo "Missing configuration: ${BASE_DIR}/common-functions.sh" + echo "Missing configuration: ${BASE_DIR}/../common-functions.sh" exit 1 fi -getKiekerAgent - -# copy receiver -tar -xvpf ${BASE_DIR}/../../tools/receiver/build/distributions/receiver.tar -# copy result compiler -tar -xvpf ${BASE_DIR}/../../tools/compile-results/build/distributions/compile-results.tar - if [ -f "${BASE_DIR}/common-functions" ] ; then . ${BASE_DIR}/common-functions else @@ -37,6 +30,10 @@ else exit 1 fi +getKiekerAgent + +PARENT=`dirname "${RESULTS_DIR}"` +RECEIVER="${BASE_DIR}/receiver/bin/receiver" # check command line parameters if [ "$1" == "" ] ; then @@ -53,10 +50,9 @@ fi # test input parameters and configuration #checkFile R-script "${RSCRIPT_PATH}" checkDirectory DATA_DIR "${DATA_DIR}" create - -PARENT=`dirname "${RESULTS_DIR}"` -checkDirectory result-base "$PARENT" +checkDirectory result-base "${PARENT}" checkFile ApsectJ-Agent "${AGENT}" +checkExecutable Receiver "${RECEIVER}" information "----------------------------------" information "Running benchmark..." @@ -95,8 +91,8 @@ WRITER_CONFIG[2]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=ki WRITER_CONFIG[3]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.TextLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/" WRITER_CONFIG[4]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.BinaryLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.bufferSize=8192 -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/" WRITER_CONFIG[5]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.SingleSocketTcpWriter -Dkieker.monitoring.writer.tcp.SingleSocketTcpWriter.port=2345" -RECEIVER[5]="${BASE_DIR}/collector-2.0/bin/collector -p 2345" -RECEIVER[5]="${BASE_DIR}/receiver/bin/receiver 2345" +#RECEIVER[5]="${BASE_DIR}/collector-2.0/bin/collector -p 2345" +RECEIVER[5]="${RECEIVER} 2345" ## Write configuration uname -a >${RESULTS_DIR}/configuration.txt @@ -183,7 +179,7 @@ function execute-benchmark() { recursion=${RECURSION_DEPTH} information "## Starting iteration ${loop}/${NUM_OF_LOOPS}" - echo "## Starting iteration ${loop}/${NUM_OF_LOOPS}" >>${DATA_DIR}/kieker.log + echo "## Starting iteration ${loop}/${NUM_OF_LOOPS}" >> "${DATA_DIR}/kieker.log" for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do execute-benchmark-body $index $loop $recursion @@ -192,9 +188,9 @@ function execute-benchmark() { printIntermediaryResults done - mv ${DATA_DIR}/kieker.log ${RESULTS_DIR}/kieker.log - [ -f ${RESULTS_DIR}/hotspot-1-${RECURSION_DEPTH}-1.log ] && grep "<task " ${RESULTS_DIR}/hotspot-*.log > ${RESULTS_DIR}/log.log - [ -f ${DATA_DIR}/errorlog.txt ] && mv ${DATA_DIR}/errorlog.txt ${RESULTS_DIR} + mv "${DATA_DIR}/kieker.log" "${RESULTS_DIR}/kieker.log" + [ -f "${RESULTS_DIR}/hotspot-1-${RECURSION_DEPTH}-1.log" ] && grep "<task " "${RESULTS_DIR}"/hotspot-*.log > "${RESULTS_DIR}/log.log" + [ -f "${DATA_DIR}/errorlog.txt" ] && mv "${DATA_DIR}/errorlog.txt" "${RESULTS_DIR}" } ## Execute benchmark -- GitLab