Closed
Description
I'm getting a rather substantial memory leak, and I've isolated it to node-postgres, I don't know much more than that at the moment. It doesn't appear related to connection failures, so I believe it's different to #417.
Here's my initial repro on GitHub:
- Create a new Heroku app.
heroku addons:add heroku-postgresql
so we have a DB to connect to.heroku labs:enable log-runtime-metrics
so we can see the dyno memory usage.- Clone my test repo.
- Push the test repo to the Heroku app.
heroku ps:scale work=1
to start doing work.heroku logs --tail
and watch for thesample#memory_rss
output from the runtime metric lab.
If you heroku addons:add librato
, wait a little, then heroku addons:open librato
, you can see a graph of the leak, like this:
(that's 60 MB in < 20 mins for a script which does nothing but connect
!)
Details:
Heroku version 9.3.3
node-postgres version 3.1.0 (using native, as I need SSL, per #25)
node 0.10.28
Metadata
Metadata
Assignees
Labels
No labels