This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-08
Channels
- # 100-days-of-code (1)
- # admin-announcements (1)
- # aleph (1)
- # announcements (9)
- # beginners (125)
- # cider (1)
- # cljs-dev (80)
- # cljsrn (2)
- # clojure (82)
- # clojure-czech (1)
- # clojure-dev (5)
- # clojure-finland (1)
- # clojure-italy (16)
- # clojure-nl (6)
- # clojure-spec (24)
- # clojure-uk (39)
- # clojurescript (35)
- # community-development (49)
- # core-async (3)
- # cursive (31)
- # data-science (17)
- # datomic (21)
- # emacs (5)
- # fulcro (92)
- # graphql (1)
- # jobs (2)
- # lambdaisland (1)
- # leiningen (19)
- # luminus (9)
- # off-topic (21)
- # parinfer (6)
- # pedestal (1)
- # portkey (2)
- # re-frame (12)
- # reagent (8)
- # reitit (4)
- # shadow-cljs (117)
- # spacemacs (5)
- # specter (4)
- # sql (2)
- # testing (2)
- # tools-deps (3)
- # vim (1)
i have the following jvm-opts
:jvm-opts ["-Xmx3g"
"-XX:+StartAttachListener"
"-Dcom.sun.management.jmxremote"
"-Dcom.sun.management.jmxremote.ssl=false"
"-Dcom.sun.management.jmxremote.authenticate=false"
"-Dcom.sun.management.jmxremote.port=43210"]
for a clojurescript and clojure app, that i occasionally profile using visualvm (hence the jmxremote stuff). right now, if i lein repl
a clojure repl, and lein figwheel
a cljs one, it complains about port 43210 already being bound. can i have a conditional jvm-opt?you could also put an alias over that to make it less to type if you are needing to do that frequently
ooh that's good. yeah i think i want it only for lein repl
; i'm actually posting about this on behalf of my team, and i'm not sure what exact workflow they have
So outside your profile for jmx, you maybe want to share
:jvm-opts ["-Xmx3g"
"-XX:+StartAttachListener"]
Then in the profile, you’d put the jmx stuff like:
:profiles {:clj-jmx-remote {:jvm-opts ["-Dcom.sun.management.jmxremote"
"-Dcom.sun.management.jmxremote.ssl=false"
"-Dcom.sun.management.jmxremote.authenticate=false"
"-Dcom.sun.management.jmxremote.port=43210"]}}
🌞 4