You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/tracing/trace_collection/compatibility/java.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,6 +294,44 @@ Integrations can be enabled or disabled individually (overriding the default abo
294
294
- Loading multiple Java Agents that perform APM/tracing functions is not a recommended or supported configuration.
295
295
- When enabling the tracer for Java 24+, you may see warnings related to JNI native access or `sun.misc.Unsafe` memory access. Suppress these warnings by adding the `--illegal-native-access=allow` and `--sun-misc-unsafe-memory-access=allow` environment variables right before the `-javaagent:/path/to/dd-java-agent.jar` argument. See [JEP 472][13] and [JEP 498][14] for more information.
296
296
297
+
## Ahead-of-time (AOT) class loading & linking support
298
+
299
+
To improve startup time, Ahead-of-time (AOT) class loading & linking makes application classes instantly available in a loaded and linked state when the JVM starts. See [JEP 483][15] and [JEP 514][16] for more information.
300
+
301
+
### Requirements
302
+
303
+
Use:
304
+
305
+
- Java 25 or later
306
+
-[Datadog Java tracer][1] 1.57.0 or later
307
+
308
+
### Setup
309
+
310
+
To set up AOT class loading & linking for APM, add the Datadog Java tracer during the training run:
##### Not attaching the Datadog Java tracer during the training run
326
+
327
+
If you see this warning in production, it means the Datadog Java tracer wasn't attached during training:
328
+
```
329
+
Mismatched values for property jdk.module.addmods: java.instrument specified during runtime but not during dump time
330
+
```
331
+
The JVM cannot then use the AOT cache to improve startup time. The solution is to attach the tracer during training.
332
+
333
+
{{% /collapse-content %}}
334
+
297
335
## GraalVM Native Image support
298
336
299
337
GraalVM Native Image is a technology that allows you to compile Java applications into native executables. The Datadog Java tracer supports GraalVM Native Image. This allows you to compile your applications into native executables while still benefiting from the tracing capabilities offered by the library.
@@ -487,3 +525,5 @@ For more information, see [Configure APM and DogstatsD communication mode][11].
0 commit comments