Skip to content
Snippets Groups Projects
Commit c49c162a authored by Reiner Jung's avatar Reiner Jung
Browse files

Updated setup

parent 8834fb20
No related branches found
No related tags found
No related merge requests found
......@@ -72,10 +72,10 @@ function executeBenchmarkBody() {
loop="$2"
recursion="$3"
if [[ "${RECEIVER[$index]}" ]] ; then
echo "receiver ${RECEIVER[$index]}"
debug "receiver ${RECEIVER[$index]}"
${RECEIVER[$index]} >> "${DATA_DIR}/kieker.receiver-${loop}-${index}.log" &
RECEIVER_PID=$!
echo "PID $RECEIVER_PID"
debug "PID ${RECEIVER_PID}"
fi
executeExperiment "$loop" "$recursion" "$index" "${TITLE[$index]}" "${WRITER_CONFIG[$index]}"
......
......@@ -68,9 +68,7 @@ showParameter
TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} `
info "Experiment will take circa ${TIME} seconds."
JAVA_ARGS="-server"
JAVA_ARGS="${JAVA_ARGS} -Xms1G -Xmx2G"
JAVA_ARGS="${JAVA_ARGS} -verbose:gc "
JAVA_ARGS="-Xms1G -Xmx2G -verbose:gc"
JAVA_ARGS_NOINSTR="${JAVA_ARGS}"
JAVA_ARGS_OPENTELEMETRY_BASIC="${JAVA_ARGS} -javaagent:${AGENT_JAR} -Dotel.resource.attributes=service.name=moobench -Dotel.instrumentation.methods.include=moobench.application.MonitoredClassSimple[monitoredMethod];moobench.application.MonitoredClassThreaded[monitoredMethod]"
......
......@@ -24,7 +24,7 @@ function startJaeger {
tar -xvf jaeger-1.24.0-linux-amd64.tar.gz
rm jaeger-1.24.0-linux-amd64.tar.gz
fi
cd "${BASE_DIR}/jaeger-1.24.0-linux-amd64"
"${BASE_DIR}/jaeger-1.24.0-linux-amd64/jaeger-all-in-one" &> "${BASE_DIR}/jaeger-1.24.0-linux-amd64/jaeger.log" &
cd "${BASE_DIR}"
......@@ -81,8 +81,9 @@ function runOpenTelemetryLogging {
${MORE_PARAMS} &> "${RESULTS_DIR}/output_${i}_${RECURSION_DEPTH}_${k}.txt"
if [ ! "$DEBUG" = true ]
then
echo "DEBUG is $DEBUG, deleting opentelemetry logging file"
rm ${RESULTS_DIR}/output_"$i"_"$RECURSION_DEPTH"_$k.txt
rm "${RESULTS_DIR}/output_${i}_${RECURSION_DEPTH}_${k}.txt"
else
debug "Keeping opentelemetry logging file"
fi
}
......
......@@ -107,7 +107,7 @@ function writeConfiguration() {
function printIntermediaryResults {
for ((index=0;index<${#TITLE[@]};index+=1)); do
echo -n "Intermediary results "${TITLE[$index]}" "
info_n "Intermediary results "${TITLE[$index]}" "
cat ${RAWFN}-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum
done
}
......@@ -145,6 +145,10 @@ function info() {
echo -e "${INFO} $@"
}
function info_n() {
echo -n -e "${INFO} $@"
}
function debug() {
if [ "${DEBUG}" == "yes" ] ; then
echo -e "${DEBUG_INFO} $@"
......
......@@ -67,9 +67,7 @@ showParameter
TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} `
info "Experiment will take circa ${TIME} seconds."
JAVA_ARGS="-server"
JAVA_ARGS="${JAVA_ARGS} -Xms1G -Xmx2G"
JAVA_ARGS="${JAVA_ARGS} -verbose:gc "
JAVA_ARGS="-Xms1G -Xmx2G -verbose:gc"
JAVA_ARGS_NOINSTR="${JAVA_ARGS}"
JAVA_ARGS_LTW="${JAVA_ARGS} -javaagent:${BASE_DIR}/agent/inspectit-ocelot-agent-1.11.1.jar -Djava.util.logging.config.file=${BASE_DIR}/config/logging.properties"
......
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