Troubleshooting
Articles about how to solve the most common problems
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
moritzwitti
Dynatrace Contributor
Dynatrace Contributor

Summary

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.

 

Problem

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.

 

Resolution

To enable OneAgent monitoring for Java processes, remove parameters related to Ahead-of-Time Class loading.

Source

 

What's next

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

Version history
Last update:
‎07 Apr 2025 01:59 PM
Updated by:
Comments
RSarafaniuk
Participant

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.