48
votes

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

1

1 Answers

71
votes

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"]