Use benchmark cgroup
@@ -75,8 +75,8 @@ function benchmark() {
RESULT_FILE=apm-agent-benchmark-results-${COMMIT_ISO_8601}.json
BULK_UPLOAD_FILE=apm-agent-bulk-${NOW_ISO_8601}.json
- #sudo cset proc --exec /benchmark -- \
- java -jar ${WORKSPACE}/apm-agent-benchmarks/target/benchmarks.jar ".*ContinuousBenchmark" -prof gc -rf json -rff ~/${RESULT_FILE}
+ sudo cset proc --exec /benchmark -- \
+ $JAVA_HOME/bin/java -jar ${WORKSPACE}/apm-agent-benchmarks/target/benchmarks.jar ".*ContinuousBenchmark" -prof gc -rf json -rff ~/${RESULT_FILE}
cd ~
@@ -85,7 +85,7 @@ function benchmark() {
rm -f ${RESULT_FILE}
mv "${RESULT_FILE}.clean" ${RESULT_FILE}
- java -cp ${WORKSPACE}/apm-agent-benchmarks/target/benchmarks.jar co.elastic.apm.benchmark.PostProcessBenchmarkResults ${RESULT_FILE} ${BULK_UPLOAD_FILE} ${COMMIT_UNIX}
+ $JAVA_HOME/bin/java -cp ${WORKSPACE}/apm-agent-benchmarks/target/benchmarks.jar co.elastic.apm.benchmark.PostProcessBenchmarkResults ${RESULT_FILE} ${BULK_UPLOAD_FILE} ${COMMIT_UNIX}
setCloudCredentials
curl --user ${CLOUD_USERNAME}:${CLOUD_PASSWORD} -XPOST 'https://1ec92c339f616ca43771bff669cc419c.europe-west3.gcp.cloud.es.io:9243/_bulk' -H 'Content-Type: application/json' --data-binary @${BULK_UPLOAD_FILE}
unset CLOUD_USERNAME
