Re: 56 second GC on Heroku - seems a bit long

2014-06-18 Thread Michael Swierczek
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).

Re: 56 second GC on Heroku - seems a bit long

2014-06-17 Thread Brian Marick
On Jun 16, 2014, at 2:57 PM, Daniel Compton d...@danielcompton.net wrote: You didn't mention whether this was on the free tier or a paid dyno. I would expect the paid dynos to not be as heavily provisioned and could possibly alleviate this. Paid. (And using 2X dynos didn't seem to make a

Re: 56 second GC on Heroku - seems a bit long

2014-06-17 Thread Jason Wolfe
Have you tried increasing your permgen size? Loading our codebase uses up just about all of the default Java permgen, and when it gets close to out I believe I've seen it thrashing the GC on the main heap. On Tuesday, June 17, 2014 6:38:46 AM UTC-7, Brian Marick wrote: On Jun 16, 2014,

Re: 56 second GC on Heroku - seems a bit long

2014-06-17 Thread Jonah Benton
Some good tactics at bottom: https://blogs.oracle.com/poonam/entry/troubleshooting_long_gc_pauses On Tue, Jun 17, 2014 at 9:38 AM, Brian Marick mar...@exampler.com wrote: On Jun 16, 2014, at 2:57 PM, Daniel Compton d...@danielcompton.net wrote: You didn't mention whether this was on

56 second GC on Heroku - seems a bit long

2014-06-16 Thread Brian Marick
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)

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Timothy Baldridge
Something I would ask your co-worker is if he has ever run heaps of that size on Heroku. From what I can tell, Heroku runs on AWS. Not sure if they are using dedicated boxes under the sheets, but the fact is you are probably running on a provisioned device. One that may have many other users. I've

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Brian Marick
On Jun 16, 2014, at 1:19 PM, Timothy Baldridge tbaldri...@gmail.com wrote: The rules for debugging this sort of thing are always 1) assume nothing. Yes, but. The plural of anecdote is data*. If there are five responses saying we run Clojure on Heroku [or a Heroku-like environment], didn't

Re: 56 second GC on Heroku - seems a bit long

2014-06-16 Thread Daniel Compton
You didn't mention whether this was on the free tier or a paid dyno. I would expect the paid dynos to not be as heavily provisioned and could possibly alleviate this. --- Daniel On 17/06/2014, at 5:47 am, Brian Marick mar...@exampler.com wrote: We have a small Clojure app on Heroku that