3 ms·
I wish the author had done a comparison for Java apps using JLink that generates a custom Java runtime image that contains only the platform modules that are re
by l8again 5y ago
I wish the author had done a comparison for Java apps using JLink that generates a custom Java runtime image that contains only the platform modules that are required for a given application, and if that makes a difference.
- gunnarmorling 5y agojlink usage won't make any significant difference typically. What does make a difference is (App)CDS though, as available in newer Java versions. Memory-mapping a file with the class metadata from previous runs can easily shave off a second or more from time-to-first-response [1], depending on number and size of classes required for that. [1] https://www.morling.dev/blog/smaller-faster-starting-container-images-with-jlink-and-appcds/ https://www.morling.dev/blog/smaller-faster-starting-contain...