-
Notifications
You must be signed in to change notification settings - Fork 138
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
Graal native image support #29
Comments
Kotlin ticket: https://youtrack.jetbrains.net/issue/KT-23962 |
I think we are quite close to get it working. On this branch with Graal 1.0.0.RC2, the executable is created and throw this exception when running:
Not sure yet how we could avoid using |
Good news, KT-23962 will be fixed in upcoming Kotlin 1.2.51. |
Spring Fu minimal webapp is now compiling to a native image successfully with Graal 1.0.0.RC2, Kotlin 1.2.60 (will also work with 1.2.51) and Netty!!! Startup time is 33 ms with Graal (to be compared with 900 ms with Java 10). The self-sufficient executable size is 50 MB but we will maybe be able to reduce it via #34. Jetty also works. |
Thanks for finding a (previously) unused corner of the SubstrateVM runtime. I have filed an issue to implement |
@Peter-B-Kessler Thanks! In Spring Boot, we use |
When I implement |
Ok thanks a lot! |
@Peter-B-Kessler Any chance you could notice me when this is on GraalVM master in order to allow me to try it and make progress on the Boot side as well? |
The changes are in https://github.com/oracle/graal/blob/master/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaManagementSubstitutions.java. I don't know what the release schedule is for the next set of built binaries. You could build from sources by following the instructions in https://github.com/oracle/graal/blob/master/substratevm/README.md. You might be disappointed that
|
Make sense thanks. Next issue we face: oracle/graal#507 |
I have updated |
Related Spring Framework issue for GraalVM native image support is SPR-16991. |
@Peter-B-Kessler @cstancu Any plan to release a RC6 shortly? It would allow our user to create Spring Fu apps that works out of the box as native images. |
@sdeleuze RC6 should come out in 1 week or less. |
@cstancu Awesome thanks |
I reopen this issue since oracle/graal#655 regression makes it impossible to compile a Spring Fu webapp with Graal 1.0.0-RC6. |
Currently even with Graal snapshots it fails with following error:
graal.json
We need to report this kind of issues to Graal project and provide custom
spring-fu.json
reflection configuration in order to provide first class support for native images.The text was updated successfully, but these errors were encountered: