File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
dd-java-agent/agent-crashtracking/src/main/resources/datadog/crashtracking Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ echo "PID: $PID"
5454unset JDK_JAVA_OPTIONS
5555unset JAVA_TOOL_OPTIONS
5656unset _JAVA_OPTIONS
57+ # Prevent the instrumentation injector from re-injecting the agent into the child JVM
58+ unset LD_PRELOAD
59+ unset DYLD_INSERT_LIBRARIES
5760
5861# Execute the Java command with the loaded values
5962" $config_java_home /bin/java" -Ddd.dogstatsd.start-delay=0 -jar " $config_agent " sendOomeEvent " $config_tags "
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ if [ -z "$1" ]; then
1111 unset JDK_JAVA_OPTIONS
1212 unset JAVA_TOOL_OPTIONS
1313 unset _JAVA_OPTIONS
14+ # Prevent the instrumentation injector from re-injecting the agent into the child JVM
15+ unset LD_PRELOAD
16+ unset DYLD_INSERT_LIBRARIES
1417
1518 " !JAVA_HOME!/bin/java" -jar " !AGENT_JAR!" uploadCrash " !JAVA_ERROR_FILE!"
1619 if [ $? -eq 0 ]; then
@@ -129,6 +132,9 @@ echo "PID: $PID"
129132unset JDK_JAVA_OPTIONS
130133unset JAVA_TOOL_OPTIONS
131134unset _JAVA_OPTIONS
135+ # Prevent the instrumentation injector from re-injecting the agent into the child JVM
136+ unset LD_PRELOAD
137+ unset DYLD_INSERT_LIBRARIES
132138
133139# Execute the Java command with the loaded values
134140" $config_java_home /bin/java" -jar " $config_agent " uploadCrash -c " $configFile " " $config_hs_err "
You can’t perform that action at this time.
0 commit comments