on 07 Apr 2025 05:00 PM
The Dynatrace OneAgent is incompatible with Java processes that have Ahead-of-Time (AOT) class loading enabled. This incompatibility may cause your application to crash or to disregard the AOT cache.
The Java 24 feature "Ahead-of-Time Class Loading & Linking" is inherently not designed to work with JVMTI agents, such as OneAgent. Therefore, OneAgent won't function with a Java process that has Ahead-of-Time class loading enabled; your application might crash or disregard the Ahead-of-Time cache. The error message to expect in this case is java.lang.ClassNotFoundException.
To enable OneAgent monitoring for Java processes, remove parameters related to Ahead-of-Time Class loading.
Source
If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:
Hello,
Is there any updates with AOT coverage. We have cases with some customers that moved to Java 25 and chosed use AOT as a target technology.
So, It is really critical to cover it with agent, but from my researches there is no option. Maybe, someone have an answer is there any progress.
Thanks in advance.