On Monday, June 16, 2014 1:47:14 PM UTC-4, Brian Marick wrote: > > We have a small Clojure app on Heroku that performs backend tasks for a > Rails app. Low traffic (like a request a minute). Heap is 400M. We've been > having long (10 sec) GC pauses using both the default and G1 GC (both > untuned). Browsing our logs today, I found: > > [GC pause (young) 156M->36M(400M), 56.0281380 secs] > > A minute for GC seems… excessive. > > Our other Clojure apps also have GC problems. > > 1. Is this something peculiar to Heroku? Clojure in small-memory > environments? I have very little experience with non-Clojure java apps, but > a coworker says: "I've run JVMs with +20g heaps, and *never* seen 10s > pauses, let alone a whole f%#^$ing minute". > > 2. Is there lore about appropriate GC tweaks for Clojure backend server > apps? > > > If it's feasible, I would attempt to run the same Clojure application in a 400MB-constrained JVM on a developer workstation and see what kind of garbage collection times you get. Hopefully that gives you a useful point of comparison. Obviously if you see the same long pauses the problem is related to your application code or Clojure, period. If you get fast garbage collections, then it's a Heroku-specific problem.
Good luck. -Mike -- 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.