euruko2013 / vestibule

The CFP platform for Euruko 2013
http://cfp.euruko2013.org
1 stars 4 forks source link

Heroku Error R14 (Memory quota exceeded) #40

Closed nikosd closed 11 years ago

nikosd commented 11 years ago

Reading from here:

Dynos whose processes exceed 512MB of memory usage are identified by an R14 error in the logs. This doesn’t terminate the process, but it does warn of deteriorating application conditions: memory used above 512MB will swap out to disk, which substantially degrades dyno performance.

If the memory size keeps growing until it reaches three times (512MB x 3 = 1.5GB) its quota, the dyno manager will restart your dyno with an R15 error.

If you suspect a memory leak in your application, memory profiling tools such as Oink for Ruby or Heapy for Python can be helpful.

I get that we are ok. Also, I believe once https://github.com/euruko2013/vestibule/issues/39 is deployed (upgrade to Ruby 2.0 with copy-on-write friendly GC) we should not see any more of these.

apantsiop commented 11 years ago

Do you find it wise to migrate to 2.0 in the middle of the CFP process?

nikosd commented 11 years ago

I'm thinking the same but:

  1. The tests are passing
  2. I will QA it by hand again
  3. The rollback is just 2 commands away

I'm just thinking to do it either tomorrow morning, or past 12 o'clock so no one misses the deadline due to our (my) fault.

nikosd commented 11 years ago

Ruby 2.0.0 is live. Let's see if this is fixed :)

nikosd commented 11 years ago

Nope, it wasn't fixed. I will decrease the number of unicorns and if we need more concurrency I will scale up our web dynos,