Skip to content

Commit

Permalink
feat: Append to JAVA_TOOL_OPTIONS instead of override (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve authored Oct 20, 2022
1 parent b7b2def commit c9fb363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/datadog_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9fb363

Please sign in to comment.