This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-06
Channels
- # adventofcode (106)
- # aleph (1)
- # announcements (1)
- # asami (14)
- # babashka (120)
- # beginners (54)
- # calva (106)
- # chlorine-clover (33)
- # clj-kondo (5)
- # cljdoc (3)
- # cljs-dev (3)
- # clojure (92)
- # clojure-android (1)
- # clojure-australia (2)
- # clojure-europe (24)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-uk (16)
- # clojuredesign-podcast (1)
- # clojurescript (29)
- # code-reviews (58)
- # conjure (16)
- # core-logic (4)
- # cursive (9)
- # datalevin (2)
- # graphql (20)
- # gratitude (7)
- # jackdaw (11)
- # java (9)
- # jobs (2)
- # lsp (23)
- # minecraft (1)
- # missionary (28)
- # off-topic (5)
- # polylith (5)
- # react (1)
- # reagent (12)
- # releases (1)
- # remote-jobs (4)
- # reveal (7)
- # shadow-cljs (8)
- # slack-help (1)
- # tools-deps (11)
- # vim (6)
yeah, that's not a feature
there is an ask question at https://ask.clojure.org/index.php/7834/support-default-jvm-opts?show=7834#q7834 about this if you want to vote on it. (but I think it's unlikely that that will be the final answer)
generically, not that I'm aware of
It's probably better to use an external tool for that - either checking the cmd line or using something like jcmd, JMC, etc.
Since JDK 9, you can also use ProcessHandle if this is what you are after:
(-> (java.lang.ProcessHandle/current) .info .commandLine .get)
EDIT: or this to get only the args
(-> (java.lang.ProcessHandle/current) .info .arguments .get)
thanks @U06BE1L6T - that’s useful to assert that the jvm options are getting set
There is also a clj-kondo issue about it: https://github.com/clj-kondo/clj-kondo/issues/1269 Feel free to upvote using a thumbs up.