Statistics about CDS effectiveness
Stephane Nicoll
stephane.nicoll at broadcom.com
Tue Jan 23 08:39:16 UTC 2024
Hey,
I hope this mailing list is the right place for this. I am working with
Sébastien Deleuze on the Spring team and we've been focusing quite a bit on
CDS lately and how it can be easily leveraged by our user base.
One thing we quickly found out was that the cache can be more or less
effective depending on the way you start the app (classloaders, non
deterministic list of jar files, etc). Initially, we were testing the
startup time and comparing when CDS wasn't enabled.
I think there must be a better way and, for the lack of finding one, I've
developed a (very) pragmatic approach of parsing the JVM logs and producing
a report[1]. The tool has improved a bit for our own use case, creating the
cache and providing a report of the warnings that were issued (to spot
packages that couldn't be managed and why).
Parsing the logs is good enough for our little testing there but we were
wondering if there was an appetite (or need) to productize this. We were
thinking that JFR events could be an option.
Thanks,
S.
[1] https://github.com/snicoll/cds-log-parser
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20240123/47d2ae24/attachment.htm>
More information about the leyden-dev
mailing list