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:
11
clojure/set-max-heap-size.md
Normal file
11
clojure/set-max-heap-size.md
Normal 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.
|
||||
Reference in New Issue
Block a user