How do I set JVM options like -server
when I launch Clojure using Leiningen?
There are three types of options that you can add to your JVM, standard, non-standard and advanced options. If you apply an advanced option, you always precede the option with -XX: . Similarly if you're using a non-standard option, you'll use -X . Standard options don't prepend anything to the option.
Looking at the sample.project.clj file on the github repository, It looks like you can pass JVM arguments using the :jvm-opts
keyword. For Example:
:jvm-opts ["-Xmx1g" "-server"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With