From c9fb363ee464e7a8d0529d16728d75a537d7f1b4 Mon Sep 17 00:00:00 2001 From: AJ Stuyvenberg Date: Thu, 20 Oct 2022 11:40:31 -0400 Subject: [PATCH] feat: Append to JAVA_TOOL_OPTIONS instead of override (#86) --- scripts/datadog_wrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/datadog_wrapper b/scripts/datadog_wrapper index da5db0e4..cb4a287f 100644 --- a/scripts/datadog_wrapper +++ b/scripts/datadog_wrapper @@ -68,9 +68,9 @@ then export DD_JMXFETCH_ENABLED="false" export DD_RUNTIME_METRICS_ENABLED="false" DD_Agent_Jar=/opt/java/lib/dd-java-agent.jar - if [ -f "$DD_Agent_Jar" ] + if [ -f "$DD_Agent_Jar" ] then - export JAVA_TOOL_OPTIONS="-javaagent:$DD_Agent_Jar -XX:+TieredCompilation -XX:TieredStopAtLevel=1" + export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -javaagent:$DD_Agent_Jar -XX:+TieredCompilation -XX:TieredStopAtLevel=1" else echo "File $DD_Agent_Jar does not exist!" fi