generate cds file for springboot project,but core dump
Vladimir Kozlov
vladimir.kozlov at oracle.com
Mon Jun 24 14:59:25 UTC 2024
Hi, Dreamlike
While we are investigating the issue, please, try next VM flags:
-XX:+UnlockDiagnosticVMOptions -XX:-ReduceAllocationMerges
Regards,
Vladimir K
On 6/24/24 12:44 AM, Sebastien Deleuze wrote:
> Thanks for creating the issue Ioi.
>
> Dreamlike, FYI with Cache Data Store, we advise to use the same
> extracted form than with Class Data Sharing instead of directly using
> the executable JAR, see related documentation in
> https://docs.spring.io/spring-boot/reference/packaging/class-data-sharing.html <https://docs.spring.io/spring-boot/reference/packaging/class-data-sharing.html>. Otherwise you will likely not see the benefit you may expect.
>
> On Mon, Jun 24, 2024 at 6:07 AM <ioi.lam at oracle.com
> <mailto:ioi.lam at oracle.com>> wrote:
>
> Thanks for reporting the issue. I have filed
> https://bugs.openjdk.org/browse/JDK-8334809
> <https://bugs.openjdk.org/browse/JDK-8334809>
>
> - Ioi
>
> On 6/21/24 11:38 PM, dreamlike_ocean lei wrote:
> > Leyden-dev team:
> > I am writing to report an issue I encountered while using the new
> > Leyden EA build for various tests. Specifically, when generating CDS
> > (Class Data Sharing) files for a Spring Boot project on Linux
> x86_64,
> > I encountered a core dump.
> >
> > Here are the details:
> >
> > Project repository:
> > https://github.com/dreamlike-ocean/leydenPlayground
> <https://github.com/dreamlike-ocean/leydenPlayground> (In the project
> > root directory, you will find the corresponding core dump and logs
> > related to this issue.)
> > Reproduction steps:
> >
> > 1,Navigate to the project root directory.
> > 2,Execute the following build command:
> > `mvn clean package -pl leyden-spring && java
> > -XX:CacheDataStore=spring-leyden.cds -jar
> > leyden-spring/target/leyden-spring-0.0.1.jar`
> >
> > I appreciate your assistance in resolving this matter. Please let me
> > know if you need any additional information.
> >
> > use the following build toolchain:
> > Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
> > Maven home: /home/dreamlike/.sdkman/candidates/maven/current
> > Java version: 24-leydenpremain, vendor: Oracle Corporation, runtime:
> > /home/dreamlike/jdks/leyden-jdk-24
> > Default locale: zh_CN, platform encoding: UTF-8
> > OS name: "linux", version: "6.8.0-31-generic", arch: "amd64",
> family:
> > "unix"
> >
> >
> > Best regards, dreamlike
>
>
> 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.
More information about the leyden-dev
mailing list