Maybe you are running an old version of leiningen? This might work although JVM_OPTS works fine for me as well
:jvm-opts ^:replace ["-Xmx512m"] Maybe you have some other conflicting configuration somewhere that sets it explicitly to 4G? Usually no maximum is set and the JVM will automatically adjust it based on your system. On Sunday, February 26, 2017 at 10:14:22 PM UTC+1, Cecil Westerhof wrote: > > 2017-02-26 21:59 GMT+01:00 Cecil Westerhof <cldwes...@gmail.com > <javascript:>>: > >> 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. >>> >> >> Did not work either, but at the moment I use: >> export JVM_OPTS=-Xmx512m >> >> For the moment that does the trick. >> > > No it does not. :'-( When looking to the commandline parameters I see: > -Xmx512m-Xmx4096M > > I need to invest some time. > > -- > 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.