node.js - Determining the cause of RSS memory leak in NodeJS -


i stumbled upon memory leak in node.js application after migrating mongodb postgresql. code runs on node.js v 0.10.x. code , dependencies 100% written in js. i'm using pg.js module access database.

the problem see rss of node growing (until process crashes) not heap , not v8 external memory (logged via --trace_external_memory flag). that's why none of tools find leaks in v8 heap helping me.

what cause of memory leak? example, possible have leak related buffer instances wouldn't appear in external memory logs?

what version of postgres running? there memory leak in pre 9.3.3 versions relative json functions. 9.3.3 release notes:

"fix memory leakage in json functions"

if possible, try upgrading 9.3.3 or higher (9.3.5 recent stable release of writing).


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -