You can get some manner of memory pressure relief by using the G1GC (which
lets the OS reclaim memory) and forcing GC's once in a while.
Leiningen has 2 JVMs.
In my ~/.emacs.d/init.el:
(setenv "LEIN_JVM_OPTS" "-XX:+UseG1GC") will catch the leiningen JVM.
In my ~/.lein/profiles.clj
:jvm-opts ["-XX:+UseG1GC"] will catch project JVMs.
You can force a GC on all java processes with some variation of:
ps axf | grep java | grep -v grep | awk '{print "jmap -histo:live " $1}' |
sh
This will help keep the footprint low at steady-state.
On Fri, Jun 20, 2014 at 10:54 AM, Michal Till <[email protected]> wrote:
> Hello,
>
> Based on my previous experience with Ruby, JavaScript etc. I have set up
> my workflow in a way that it runs three different processes:
>
> lein cljx auto - translates the sources to clj and cljs
> lein cljsbuild auto dev - reads cljs output of ^^ and compiles it on every
> file change
> lein midje :autotest - runs tests on every file change
>
> Starting all these JVMs takes a considerable amount of time and my old
> macbook is frying.
>
> I feel that there must be a better way. For example in javascript's Gulp
> buildsystem I pipe all the sources form one compilaiton step to the other
> in one process, avoiding unreliable filesystem events etc.
>
> Is there a way this can be easily improved?
>
> Michal
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.