This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-16
Channels
- # ai (5)
- # announcements (47)
- # aws (11)
- # babashka (20)
- # beginners (85)
- # biff (1)
- # calva (72)
- # cider (9)
- # clj-kondo (37)
- # cljfx (9)
- # cljs-dev (1)
- # clojars (2)
- # clojure (61)
- # clojure-berlin (2)
- # clojure-europe (189)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (2)
- # clojurescript (51)
- # conjure (3)
- # cursive (4)
- # data-science (6)
- # datomic (6)
- # events (5)
- # fulcro (16)
- # gratitude (9)
- # holy-lambda (9)
- # introduce-yourself (6)
- # lsp (13)
- # malli (8)
- # membrane (2)
- # off-topic (47)
- # pedestal (11)
- # re-frame (15)
- # reitit (1)
- # releases (2)
- # rewrite-clj (6)
- # rum (4)
- # shadow-cljs (2)
- # tools-deps (3)
- # xtdb (25)
- # yada (13)
Prerelease version of the Clojure CLI 1.11.1.1161 is now available: • Adds new CLJ_JVM_OPTS env var that can be used to set jvm opts on the internal processes that build classpaths • Adds support for including the not-standard but common JAVA_OPTS for setting jvm opts on user programs, which may be useful in cases where people have previously asked for "global" jvm opts • This support has been implemented for Linux and Mac, but not yet for Windows (but I will do that before I do an official release)
(Also, I learned that since Java 9 there is a new standard JDK_JAVA_OPTIONS env var - you can set that to send jvm options to all the Java things)
This is really useful, thanks. I’m using JDK_JAVA_OPTIONS
to pass options to the java
command to set heap size constraints
https://docs.oracle.com/en/java/javase/14/docs/specs/man/java.html#using-the-jdk_java_options-launcher-environment-variable
I’m using it in the Dockerfile
for my current project and its working well
# JDK_JAVA_OPTIONS environment variable for setting JVM options
ENV JDK_JAVA_OPTIONS "-XshowSettings:system -XX:+UseContainerSupport -XX:MaxRAMPercentage=90"
# Start service (over-rides default entrypoint command of image)
CMD ["java", "-jar", "/service.jar"]
This is really useful, thanks. I’m using JDK_JAVA_OPTIONS
to pass options to the java
command to set heap size constraints
https://docs.oracle.com/en/java/javase/14/docs/specs/man/java.html#using-the-jdk_java_options-launcher-environment-variable
I’m using it in the Dockerfile
for my current project and its working well
# JDK_JAVA_OPTIONS environment variable for setting JVM options
ENV JDK_JAVA_OPTIONS "-XshowSettings:system -XX:+UseContainerSupport -XX:MaxRAMPercentage=90"
# Start service (over-rides default entrypoint command of image)
CMD ["java", "-jar", "/service.jar"]