1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/clojure/set-max-heap-size.md
2015-09-27 22:54:20 -05:00

305 B

Set Max Heap Size

For lein-based projects, the maximum heap size can be set by including the -Xmx option in the jvm-opts portion of the project.clj file. For instance, to set the maximum JVM heap size to 2 gigabytes, include:

  :jvm-opts ["-Xmx2g"]

in your project.clj file.