Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JVM options using Leiningen

How do I set JVM options like -server when I launch Clojure using Leiningen?

like image 993
2daaa Avatar asked Sep 21 '10 04:09

2daaa


People also ask

What are JVM options?

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.


1 Answers

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"]  
like image 145
Joel Boehland Avatar answered Sep 24 '22 02:09

Joel Boehland