Detecting CDS/Leyden use at runtime

Charles Oliver Nutter headius at headius.com
Tue Mar 25 15:30:10 UTC 2025


Hello!

We are about to release JRuby 10 with a new launcher script that utilizes
optimal CDS/AOT flags for startup time. When users run JRuby 10 on a JDK >=
13, we will automatically dump JSA and use that for subsequent runs. Users
can also actively regenerate that cache based on some Ruby command line.
The gains have been sick, so to speak.

However we are trying to error-proof this feature, and wondering there's a
way to query AppCDS/Leyden/AOT features are runtime, so we can know if they
were used to start up when diagnosing issues.

Is there any API or JMX or anything that we could access to get this
information at runtime?

*Charles Oliver Nutter*
*Architect and Technologist*
Headius Enterprises
https://www.headius.com
headius at headius.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20250325/7a383327/attachment.htm>


More information about the leyden-dev mailing list