JVM options using Leiningen

2daaa picture 2daaa · Sep 21, 2010 · Viewed 20.7k times · Source

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

Answer

Joel Boehland picture Joel Boehland · Sep 21, 2010

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