Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CDS #7580

Open
jacobmarshmallow opened this issue Sep 9, 2024 · 3 comments
Open

Support CDS #7580

jacobmarshmallow opened this issue Sep 9, 2024 · 3 comments
Labels

Comments

@jacobmarshmallow
Copy link

Hi, now that Spring Boot supports it [1] [2] we were hoping to use java CDS to speed up our application start times.
In local testing we saw that it improved them drastically but when we went to run it in the cloud with the datadog agent attached we could see from the class loader + class path logs (-Xlog:class+load:file and -Xlog:class+path=debug:file) that the classes were being loaded from the jars again and not the .jsa archive we generated. I'm not actually sure if it's even technically possible, but it would be great if the agent could support loading the apps classes it needs from the archive. I am happy to provide a reproduction if necessary

@mcculls
Copy link
Contributor

mcculls commented Sep 9, 2024

Hi @jacobmarshmallow - thanks, a reproduction would be very helpful

Note we are limited to what the JVM instrumentation API lets us do and how that interacts with shared classes.

@jacobmarshmallow
Copy link
Author

Hi @mcculls,
Here is a repro repo, I hope it helps!

Yeah I am hoping the JVM allows for it, I am at the limits of my knowledge around agents so was just raising to with the hope that it might.

@Wikiko
Copy link

Wikiko commented Oct 1, 2024

I'm having the same trouble :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants