Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduce memory consumption in development

Tags:

clojure

When I'm developing my project I have 3+ jvm instances running.

  • $ lein garden auto
  • $ lein cljsbuild auto
  • $ lein datomic start
  • cider repl
  • cider brepl

With firefox open for a few days I get pretty close to maxing out my 8gb of ram. How can I reduce memory consumption?

like image 759
deadghost Avatar asked Oct 19 '22 09:10

deadghost


1 Answers

while invoking the JVM, you could set the maximum size to be used

e.g -Xmx1024m -Xms1024m would use only 1GB of ram

Hope it helps regards

like image 129
Mr Robbes Avatar answered Nov 28 '22 05:11

Mr Robbes