Fauntleroy / tandem.io_2014-2016

Minimal, open-source version of TK Sync
MIT License
11 stars 5 forks source link

Server died randomly #80

Closed Fauntleroy closed 9 years ago

Fauntleroy commented 9 years ago

Looks like a memory leak:

2015-03-19T06:26:40.570872+00:00 heroku[web.1]: Process running mem=669M(130.8%)
2015-03-19T06:26:40.570956+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2015-03-19T06:27:01.386282+00:00 heroku[web.1]: Process running mem=669M(130.8%)
2015-03-19T06:27:01.386346+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2015-03-19T06:27:22.498784+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2015-03-19T06:27:22.498784+00:00 heroku[web.1]: Process running mem=669M(130.8%)
2015-03-19T06:27:38.261536+00:00 heroku[web.1]: Cycling
2015-03-19T06:27:38.262295+00:00 heroku[web.1]: State changed from up to starting
2015-03-19T06:27:41.144997+00:00 heroku[web.1]: Stopping all processes with SIGTERM
Fauntleroy commented 9 years ago

Could be newrelic: https://discuss.newrelic.com/t/memory-leaking-only-with-node-js-agent-installed/14448/28

Fauntleroy commented 9 years ago

No more memory leaks that I'm aware of, but Heroku will restart the server once every 24 hours. Need to make sure the app is stateless ASAP.