Skip to content
Snippets Groups Projects
Commit 32995ed4 authored by Cam Saul's avatar Cam Saul
Browse files

set upper limit for heap size on JVM when running tests

parent ec720f77
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,12 @@
:profiles {:dev {:dependencies [[clj-http "1.0.1"] ; HTTP Client
[expectations "2.0.16"] ; unit tests
[ring/ring-mock "0.2.0"]]
:jvm-opts ["-Dlogfile.path=target/log -XX:PermSize=64m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"]}
:jvm-opts ["-Dlogfile.path=target/log"
"-Xms1024m" ; give JVM a decent heap size to start with
"-Xmx2048m" ; hard limit of 2GB so we stop hitting the 4GB container limit on CircleCI
"-XX:PermSize=64m" ; start with a little more PermGen space
"-XX:MaxPermSize=128m" ; a little more headroom for PermGen
"-XX:+CMSClassUnloadingEnabled" ; let Clojure's dynamically generated temporary classes be GC'ed from PermGen
"-XX:+UseConcMarkSweepGC"]} ; Concurrent Mark Sweep GC needs to be used for Class Unloading (above)
:uberjar {:aot :all
:prep-tasks ["npm" "gulp" "javac" "compile"]}})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment