1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +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

@@ -14,6 +14,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Open JavaDocs](clojure/open-javadocs.md)
- [Quick Clojure Docs](clojure/quick-clojure-docs.md)
- [Reductions](clojure/reductions.md)
- [Set Max Heap Size](clojure/set-max-heap-size.md)
- [Specify the Directory of a Shell Command](clojure/specify-the-directory-of-a-shell-command.md)
- [Splitting On Whitespace](clojure/splitting-on-whitespace.md)
- [Swap Two Items in a Vector](clojure/swap-two-items-in-a-vector.md)

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.