This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-24
Channels
- # announcements (2)
- # babashka (39)
- # babashka-sci-dev (1)
- # beginners (30)
- # biff (2)
- # cider (9)
- # clj-commons (5)
- # clj-yaml (30)
- # cljdoc (15)
- # clojars (1)
- # clojure (13)
- # clojure-europe (42)
- # clojure-poland (6)
- # clojure-uk (2)
- # cursive (4)
- # datomic (24)
- # graalvm (12)
- # graphql (7)
- # hyperfiddle (91)
- # lsp (175)
- # malli (3)
- # membrane (9)
- # music (1)
- # off-topic (5)
- # reagent (7)
- # reitit (1)
- # releases (7)
- # rewrite-clj (1)
- # scittle (7)
- # shadow-cljs (3)
Is there any way to debug/check the files being included by -H:IncludeResources
?
@rafaeldelboni -H:Log=registerResource:
should work according to https://www.graalvm.org/22.1/reference-manual/native-image/Resources/
strange it only shows classes, not the files like config or sql.
Yeah, I've noticed this too. Perhaps you can post this question in the graalvm community slack native image channel
True, thanks a lot.
Adding the reply from graalvm slack channel here, about the same question:
-H:Log=registerResource:3
This did the trick
I just found this: > To see which resources are included in the native executable, use the option -H:Log=registerResource:<log level>. The <log level> must be in the range from 1 to 5, from least detailed to most detailed. > https://www.graalvm.org/22.0/reference-manual/native-image/Resources/
Me too 😬
Hey btw, I just finished rewriting my microservice boilerplate with libs that are "GraalVM friendly" It's far from perfect and I had to rewrite a lot of stuff like interceptors for request/response body parsing, but is working now. It features config/env parsing, logs, database migration, HTTP requests and etc. https://github.com/rafaeldelboni/microservice-boilerplate-graalvm The "downside" is the size of the compiled bin that is 89mb vs 35mb from the uberjar. Anyway I would love some feedback.