It took me a while to figure out how to put multiple entries into an
environment variable (that is, settings for both min and max heap sizes,
to wit, "export JVM_OPTS=\ -Xms4G\ -Xmx4G") but, once I did, Phil's and
Luc's suggestions have worked well and things have gone swimmingly. They
work for
The bash example is
export JVM_OPTS=-Xms4G ...
missed the = ...
Luc
> If you are running in a unix shell, something like
>
> JVM_OPTS=-Xms4G ...
>
> Followed by
> export JVM_OPTS
>
> Bash allows you to combine the two as in:
>
> export JVM_OPTS-Xms4G ...
>
> In a windows Cmd shell, somethi
If you are running in a unix shell, something like
JVM_OPTS=-Xms4G ...
Followed by
export JVM_OPTS
Bash allows you to combine the two as in:
export JVM_OPTS-Xms4G ...
In a windows Cmd shell, something like this should work:
set JVM_OPTS=Xms4G ...
before running lein from the command line.
I should be switching over to Leiningen 2 shortly in any case, but I am
curious. How does one "set JVM_OPTS as an environment variable"?
--Larry
On 5/21/12 11:42 AM, Phil Hagelberg wrote:
On Mon, May 21, 2012 at 5:28 AM, Raju Bitter wrote:
How do I set jvm options for a lein repl initiated
On Mon, May 21, 2012 at 5:28 AM, Raju Bitter wrote:
>> How do I set jvm options for a lein repl initiated independently of a
>> project? In particular, I want the heap expansion that results from doing
>> "M-x clojure-jack-in" in an emacs project.clj buffer with ":jvm-opts [
>> "-Xms4G" "-Xmx4G"
Also there is an environment variable _JAVA_OPTIONS (note the leading
underscore) which is handled by the HotSpot JVM (OpenJDK or Oracle
JDK) and can be used with any java application.
--
Mikhail
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To pos
You could add the following evinroment variable to your OS:
LEIN_JVM_OPTS=-Xms4G -Xmx4G
On Windows for example, you could add at the top of "lein.bat" file the
following line (under "@echo off"):
SET LEIN_JVM_OPTS=-Xms4G -Xmx4G
This should be enough to do the trick.
On Mon, May 21, 2012 at 6:51
> How do I set jvm options for a lein repl initiated independently of a
> project? In particular, I want the heap expansion that results from doing
> "M-x clojure-jack-in" in an emacs project.clj buffer with ":jvm-opts [
> "-Xms4G" "-Xmx4G"]" in its defproject form.
Larry is looking for a way to
That blog post is pretty outdated. When using leiningen, you can pass
arbitrary jvm opts via project.clj[1]:
:jvm-opts ["-Xmx1g"]
[1]: https://github.com/technomancy/leiningen/blob/master/sample.project.clj
On Mon, May 21, 2012 at 1:37 PM, Raju Bitter wrote:
> Oh, sorry, misunderstood your ques
Oh, sorry, misunderstood your question. I found this blog post, maybe
this still works, although it's from 2010:
http://www.clojurepla.net/2010/05/increase-jvm-memory-when-using-swank.html
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to thi
Check the sample project.clj on Github:
https://github.com/technomancy/leiningen/blob/master/sample.project.clj
There's an entry for JVM options:
;; You can set JVM-level options here.
:jvm-opts ["-Xmx1g"]
In a quick test, that worked for me when lein repl was executed.
- Raju
--
You receiv
11 matches
Mail list logo