Skip to content

Commit 3f4ea2f

Browse files
authored
Update java parameters order
Any parameters after -jar not taken as a JVM parameters. Anything after -jar <jar file> is considered a parameters to the Java application itself.
1 parent 08a716d commit 3f4ea2f

File tree

1 file changed

+1
-1
lines changed
  • content/en/tracing/trace_collection/dd_libraries

1 file changed

+1
-1
lines changed

content/en/tracing/trace_collection/dd_libraries/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ After the agent is installed, to begin tracing your applications:
121121
2. To run your app from an IDE, Maven or Gradle application script, or `java -jar` command, with the Continuous Profiler, deployment tracking, and logs injection (if you are sending logs to Datadog), add the `-javaagent` JVM argument and the following configuration options, as applicable:
122122

123123
```text
124-
java -javaagent:/path/to/dd-java-agent.jar -Ddd.profiling.enabled=true -XX:FlightRecorderOptions=stackdepth=256 -Ddd.logs.injection=true -Ddd.service=my-app -Ddd.env=staging -jar path/to/your/app.jar -Ddd.version=1.0
124+
java -javaagent:/path/to/dd-java-agent.jar -Ddd.profiling.enabled=true -XX:FlightRecorderOptions=stackdepth=256 -Ddd.logs.injection=true -Ddd.service=my-app -Ddd.env=staging -Ddd.version=1.0 -jar path/to/your/app.jar
125125
```
126126
127127
**Note:** Enabling profiling may impact your bill depending on your APM bundle. See the [pricing page][4] for more information.

0 commit comments

Comments
 (0)