-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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-postgresqlso we have a DB to connect to.heroku labs:enable log-runtime-metricsso we can see the dyno memory usage.- Clone my test repo.
- Push the test repo to the Heroku app.
heroku ps:scale work=1to start doing work.heroku logs --tailand watch for thesample#memory_rssoutput 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
