Re:(Yet Another) Lisp in Go
by pjmlp on Sunday May 08, 2022 @10:15AM
(#31304182)
We all know that Java is slow to start up, because many don't learn how to use JIT caches or AOT solutions that exist for ages.
[ Parent
| on HN ]
I've used native compilation with Graal, but everytime I tried a cache option or some of the OpenJDK AOT I couldn't figure it out.
Can you link to something or explain how to use JIT caches?
Sure, with Open JDK
https://docs.oracle.com/en/java/javase/18/vm/class-data-shar...
Or how to use it alongside Spring,
https://medium.com/@toparvion/appcds-for-spring-boot-applica...
For OpenJ9,
https://developer.ibm.com/articles/optimize-jvm-startup-with...
On Android, ART does it automatically since Android 7,
Ya, the AppCD for OpenJDK is what I was trying last time, I think on JDK 11, and frankly I couldn't figure it out, like you have to run with a command, dump something to some path, then re-run with specifying the same path and I don't know it didn't seem it was working last time and it was pretty cumbersome.