Re: Clojure memory usage

2014-01-27 Thread Anurag Ramdasan
That sounds good. I am running openjdk1.7. I havent tried the tools yet but I would give it a shot. I quite like the idea of pedestal and dont want memory issue to be a reason for me to not use it. Thanks, - Anurag Ramdasan. On Sun, Jan 26, 2014 at 4:13 AM, Sean Corfield s...@corfield.org

Clojure memory usage

2014-01-25 Thread Anurag Ramdasan
I've been playing around with clojure for a while now but never actually made anything in it. Today I started looking around into pedestal and started following its tutorials. Once I kept the server running for a few hours I noticed that it took upto 500MB of my ram even though it wasn't

Re: Clojure memory usage

2014-01-25 Thread Jarrod Swart
This was talked about here: https://groups.google.com/forum/#!searchin/clojure/user$3A$20g$20vim/clojure/XqPGnX5aSAI/PoLYaydgX3cJ TLDR: The JVM carves out its own chunk of memory from the OS. It then uses very advanced and finely tuned means to manage said memory. So even though the app

Re: Clojure memory usage

2014-01-25 Thread Cedric Greevey
You might want to use the G1 collector (JVM opt UseG1GC) if you're using Java 7 as I've heard that the G1 collector gives memory back to the OS more readily than the other options. On Sat, Jan 25, 2014 at 1:55 PM, Jarrod Swart jcsw...@gmail.com wrote: This was talked about here:

Re: Clojure memory usage

2014-01-25 Thread Sean Corfield
On Jan 25, 2014, at 2:32 PM, Cedric Greevey cgree...@gmail.com wrote: You might want to use the G1 collector (JVM opt UseG1GC) if you're using Java 7 as I've heard that the G1 collector gives memory back to the OS more readily than the other options. My experience with Java 7 and the G1