Skip to content
Snippets Groups Projects
Commit 1e421767 authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Check for moobench.jar existence

parent 072e2b41
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,14 @@ function cleanup-results() {
[ -f ${DATA_DIR}/nohup.out ] && > ${DATA_DIR}/nohup.out
}
function checkMoobenchApplication() {
if [ ! -f "MooBench.jar" ]
then
echo "MooBench.jar missing; please build it first using ../gradlew assemble in the benchmark folder"
exit 1
fi
}
function getKiekerAgent() {
echo "Checking whether Kieker is present in $AGENT"
if [ ! -f $AGENT ]
......@@ -33,6 +41,15 @@ function getInspectItAgent() {
fi
}
function getOpentelemetryAgent() {
if [ ! -f ${BASEDIR}lib/opentelemetry-javaagent-all.jar ]
then
mkdir -p ${BASEDIR}lib
wget --output-document=${BASEDIR}lib/opentelemetry-javaagent-all.jar \
https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent-all.jar
fi
}
function createRLabels() {
# Create R labels
LABELS=""
......
......@@ -62,6 +62,8 @@ RESULTSDIR="${BASEDIR}results-inspectit/"
source ../common-functions.sh
checkMoobenchApplication
getInspectItAgent
#MOREPARAMS="--quickstart"
......
......@@ -153,16 +153,6 @@ function printIntermediaryResults {
fi
}
function downloadOpentelemetry() {
if [ ! -f ${BASEDIR}lib/opentelemetry-javaagent-all.jar ]
then
mkdir -p ${BASEDIR}lib
wget --output-document=${BASEDIR}lib/opentelemetry-javaagent-all.jar \
https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent-all.jar
fi
}
JAVABIN=""
RSCRIPTDIR=r/
......@@ -194,13 +184,9 @@ JAVAARGS="${JAVAARGS} -Xms1G -Xmx2G"
JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation"
JAR="-jar MooBench.jar"
if [ ! -f "MooBench.jar" ]
then
echo "MooBench.jar missing; please build it first using ../gradlew assemble in the benchmark folder"
exit 1
fi
checkMoobenchApplication
downloadOpentelemetry
getOpentelemetryAgent
JAVAARGS_NOINSTR="${JAVAARGS}"
JAVAARGS_OPENTELEMETRY_BASIC="${JAVAARGS} -javaagent:${BASEDIR}lib/opentelemetry-javaagent-all.jar -Dotel.resource.attributes=service.name=moobench -Dotel.instrumentation.methods.include=moobench.application.MonitoredClassSimple[monitoredMethod];moobench.application.MonitoredClassThreaded[monitoredMethod]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment