2017-02-26 21:06 GMT+01:00 Thomas Heller <th.hel...@gmail.com>:

> Ideally you would run your program without lein, probably as an uberjar.
>

​Going to look at that in the near future.
​



> But if you insist on lein you can do "lein trampoline run -m your.main/fn"
> which will allow the lein process to exit after setting up your program
> leaving you with only one JVM.
>

​Have this working now.
​



> To control the memory you can add :jvm-opts ["-Xmx512m"] to your
> project.clj. It will set the max memory of the JVM to 512mb which should be
> enough for your program.
>

​What is the best way to determine the right value for this? I remember
that in the past I had a lot of little Java​

​programs running and got a much better performance by limiting memory
usage.

-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to