>From the other direction, tuning a super-fast GC occasionally is way more fun than malloc/free!
I just found that enabling G1 was a quick hit for me. When I run that many clojure processes, some 700MB heaps mostly wasted at steady-state tends to hurt. As far as I can tell, there's no performance hit by doing so, and it will be the default eventually. On Thu, Jan 9, 2014 at 11:11 PM, Timothy Baldridge <tbaldri...@gmail.com>wrote: > Just be aware, that Erlang VM doesn't even come close to the performance > of the JVM. For example, Erjang (Erlang on the JVM) runs up to 6000% faster > than stock Erlang: http://codemesh.io/slides/kresten-krab-thorup.pdf > > So it's a trade-off like most things. The JVM takes a bit more memory from > the OS, and doesn't like to give it back, but on the upside you get the > world's fastest VM to run on. > > Just an appeal to future readers of this thread to consider all the > pros/cons before locking onto a single one (like perceived memory usage). > > Timothy > > > On Thu, Jan 9, 2014 at 8:24 PM, Gary Trakhman <gary.trakh...@gmail.com>wrote: > >> Elixir's pretty neat. Apologies for the jvm :-). >> >> >> On Thursday, January 9, 2014, gvim wrote: >> >>> After careful consideration I've concluded that, coming from a dynamic >>> scripting language background, I just don't have the time or inclination to >>> nurse-maid the JVM so Clojure isn't for me. Tuning GC and memory allocation >>> doesn't seem to be necessary with Elixir on the Erlang VM which borrows a >>> lot from Clojure yet retains the syntax style of Ruby. >>> >>> gvim >>> >>> >>> On 10/01/2014 01:46, Gary Trakhman wrote: >>> >>>> Yes, this is exactly the behavior I was expecting. >>>> >>>> 14Mb is your actual memory footprint, the rest is waste due to the JVMs >>>> aggressive memory retention policy. See my earlier comment about trying >>>> the G1 garbage collector and these: >>>> https://twitter.com/gtrakGT/status/402569842361790464 >>>> http://www.stefankrause.net/wp/?p=14 >>>> >>>> Somewhere there was a java bug reported that explicitly blamed the CMS >>>> collector, I can't find it at the moment, but that is the default >>>> collector in -server mode. >>>> >>>> >>> -- >>> -- >>> 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/groups/opt_out. >>> >> -- >> -- >> 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/groups/opt_out. >> > > > > -- > “One of the main causes of the fall of the Roman Empire was that–lacking > zero–they had no way to indicate successful termination of their C > programs.” > (Robert Firth) > > -- > -- > 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/groups/opt_out. > -- -- 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/groups/opt_out.