We are facing an issue with Dynatrace OneAgent auto-injection and Java deep monitoring on a Windows server.
Environment:
- OS: Windows
- Application: Dynatrace easyTravel
- Technology: Java
- OneAgent is installed and running successfully.
- Infrastructure and process-level monitoring are visible in Dynatrace.
- However, Java deep monitoring is not working as expected.
We tried enabling auto-injection using the following command:
<span>"C:\Program Files\dynatrace\oneagent\agent\tools\oneagentctl.exe" --set-auto-injection-enabled=true --restart-service</span>
The command returns the following output:
<span>Stopping OneAgent service
Cannot enable auto-injection as it was disabled during installation, please contact support
Starting OneAgent service</span>
However, when we check the current auto-injection status using:
<span>"C:\Program Files\dynatrace\oneagent\agent\tools\oneagentctl.exe" --get-auto-injection-enabled</span>
the result is:
<span>true</span>
This is confusing because the configuration reports that auto-injection is enabled, but attempting to enable it says that auto-injection was disabled during installation.
We have also restarted the OneAgent service and the easyTravel/Java processes, but Java deep monitoring is still not working.
The Java process is running from the following path:
<span>C:\Program Files\dynaTrace\easyTravel (x64)\jre\bin\java.exe</span>
Example command line:
<span>"C:\Program Files\dynaTrace\easyTravel (x64)\jre\bin\java.exe"
-jar "C:\Program Files\dynaTrace\easyTravel (x64)\com.dynatrace.easytravel.launcher.jar"</span>
We would like to understand:
- Why does --get-auto-injection-enabled return true while --set-auto-injection-enabled=true reports that auto-injection was disabled during installation?
- Does true only represent the current configuration, while the OneAgent installation itself still prevents code-module injection?
- Is there any way to verify whether oneagentjava.dll is actually injected/loaded into the Java process?
- Can this condition be corrected without reinstalling OneAgent?
- If reinstalling OneAgent is required, which installer parameter or installation option should we verify to ensure auto-injection is enabled?
- Are there any additional logs or diagnostic files we should check to identify why Java deep monitoring is not being activated?
Any guidance on how to troubleshoot this auto-injection status mismatch and restore Java deep monitoring would be appreciated.
Note: We are using Dynatrace free trail account.