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

Inconsistent user experience with AppCDS #944

Closed
snicoll opened this issue Nov 9, 2023 · 3 comments
Closed

Inconsistent user experience with AppCDS #944

snicoll opened this issue Nov 9, 2023 · 3 comments
Labels
bug Something isn't working stale

Comments

@snicoll
Copy link

snicoll commented Nov 9, 2023

Please provide a brief summary of the bug

It's not really a bug per se. The binary distributions of Adoptium do not contain the JDK base image. The OpenJDK distribution provides it out-of-the-box (as well as other vendors).

I've reproduced this with the latest LTS on MacOS: OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.1_12.pkg

Please provide steps to reproduce where possible

Creating a dynamic AppCDS archive for an application can be done as follows:

/java -XX:ArchiveClassesAtExit=app-cds.jsa -jar my-app.jar

Expected Results

The app-cds.jsa archive is created or updated with that training run.

Actual Results

[0.012s][warning][cds] -XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.

Enabling the logs provides the following:

[0.010s][info][cds] trying to map /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/server/classes.jsa
[0.010s][info][cds] Specified shared archive not found (/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/server/classes.jsa)
[0.010s][info][cds] Initialize static archive failed.
[0.010s][warning][cds] -XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.
[0.010s][info   ][cds] Unable to map shared spaces

What Java Version are you using?

openjdk 21.0.1 2023-10-17 LTS OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode)

What is your operating system and platform?

MacOS 13.6 (22G120) on ARM64

How did you install Java?

Via the official package OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.1_12.pkg

Did it work before?

No.

Did you test with the latest update version?

No response

Did you test with other Java versions?

Yes. I tested with https://jdk.java.net/21/, https://download.java.net/java/GA/jdk21.0.1/415e3f918a1f4062a0074a2794853d0d/12/GPL/openjdk-21.0.1_macos-aarch64_bin.tar.gz in particular.

Relevant log output

No response

@snicoll snicoll added the bug Something isn't working label Nov 9, 2023
@snicoll
Copy link
Author

snicoll commented Nov 9, 2023

Oops, this might be a duplicate of #937 ?

Copy link

github-actions bot commented Feb 8, 2024

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label Feb 8, 2024
@karianna karianna removed the stale label Feb 8, 2024
Copy link

github-actions bot commented May 9, 2024

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable.
It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

@github-actions github-actions bot added the stale label May 9, 2024
@karianna karianna closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants