RUN /usr/bin/java -XX:+UseAppCDS -XX:DumpLoadedClassList=/deployments/classes.lst -jar /deployments/app.jar & sleep 5 && exit
RUN /usr/bin/java -Xshare:dump -XX:+UseAppCDS -XX:SharedClassListFile=/deployments/classes.lst -XX:SharedArchiveFile=/deployments/app-cds.jsa --class-path /deployments/app.jar
ENTRYPOINT /usr/bin/java -Xshare:on -XX:SharedArchiveFile=/deployments/app-cds.jsa -jar "/deployments/app.jar"
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/1f34c136-b41a-4c92-b230-ab8cc04a616a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CA%2B%2Bd4ot%2BF52u5NH0fxbpAUXF676zLrGt%3DmeLuLxDg-0wXtcv%3DA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVG6a%3DrLam5gtS-6pBM2eV_1YtT06dS7y8OMxa7nRTc6hg%40mail.gmail.com.
JEP 350 facilitate the creation of the archive, that's all. No real difference on how it works.The issue with automating AppCDS is that in order to discover the more classes, you need to be sure that your apps starts (that's why Leonardo add a sleep 5 command), and most classes are discovered by the VM.As Quarkus do most of it's stuff at build time and not lazily at runtime I assume that starting the apps is OK but in my test I saw a difference in the size of the AppCDS archive between starting the apps and stoping righ after, or starting the apps and calling some rest service on it ...So, we can explain how to do it somewhere but I don't think we can automate it for all use cases.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVH2FxttO5mU4zKCczZQ0P7Fc12L4xYujwvErgmrB_3QVQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2czSvJ53979eOj%2B-VubXGHqzjj2wfHp9AYZsY5wA3uLvBA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CANYWk7Nk9Ji68c_K48NTzJXRHVMTee2RMczrd84an4j9aYNPwg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CA%2BHD-p37xatMTmoCJ1DuOB0YKKQDrdVp0V77RcGy73RN-6TMLQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVFPMJuvnZo7Hw__5EfkO%3DzqpvHdPmYViZzyiZJNSjD8zw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CALeTM-km_08UtU4sPzC7nF6w2dLOC0%3D5CD7JKuou%2BPaBpSqD6w%40mail.gmail.com.
@Georgios Andrianakis send on a different mail as I also include test for JLink ;)
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2czS1qwDAgumafZZ9Yb9X%3DSf7bKnB8iP6SrWhTW5ucLPcQ%40mail.gmail.com.