Michael Drago wrote on Tuesday, February 9, 2016 at 6:37 AM:
Hi guys. I'm trying to figure out where the JVM gets the java parameters (such 
as -Xms and -Xmx) when starting apps via "lein run" and when using the repl. 
The only successful way I have been able to set the memory is via the 
project.clj's :jvm-opts. Can we do this with an environment variable such as 
$JAVA_OPTS? I've tried $JAVA_OPTS with no success. When the env var is set the 
JVM's memory resorts to the system default. I am trying to do this on Redhat 
(Leiningen 2.4.2 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM). Thank you!

Looks like JVM_OPTS is what you want, based on a quick look at the source code… 

https://github.com/technomancy/leiningen/blob/4383caecce94482a57a25146bdd236e89b20f75f/leiningen-core/src/leiningen/core/eval.clj#L131

And the docs seem to confirm that:

https://github.com/technomancy/leiningen/blob/792750b7a1bdf0499081c72b197df41cee5ef648/doc/TUTORIAL.md#setting-jvm-options

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


-- 
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