1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Set Max Heap Size as a clojure til.

This commit is contained in:
jbranchaud
2015-09-27 22:54:20 -05:00
parent de604d9f33
commit 4a1e1fa552
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# 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:
```clojure
:jvm-opts ["-Xmx2g"]
```
in your `project.clj` file.