2017-02-27 7:59 GMT+01:00 Thomas Heller <[email protected]>: > Maybe you are running an old version of leiningen? >
Yes, I installed it a long time ago. It was 2.6.1. I updated it to 2.7.1 > This might work although JVM_OPTS works fine for me as well > > :jvm-opts ^:replace ["-Xmx512m"] > My project.clj: (defproject quotes "0.0.1" :description "Initial quotes application" :url "http://example.com/FIXME" :dependencies [[org.clojure/clojure "1.8.0"] [clj-time "0.12.0"] [com.h2database/h2 "1.3.176"] [instaparse "1.4.2"] [org.clojure/math.numeric-tower "0.0.4"] [seesaw "1.4.5"] [yesql "0.5.3"]] :main quotes.core :jvm-opts ^:replace ["-Xmx512m"] ) (I also tried without ^:replace.) But I keep having: -Xmx4096M. Is there something wrong with my project.clj? 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. > Not that I know of, but I will try to find it out. > 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 <[email protected]>: >> >>> 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 [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.
