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:
@@ -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)
|
||||
|
||||
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