Is it normal for Node.js' RSS (Resident Set Size) to grow with each request, until reaching some cap?
问题 I've noticed that RSS (Resident Set Size) of my node.js app is growing over time, and considering I'm having a "JS Object Allocation Failed - Out of Memory" error on my server, it seems a likely cause. I set up the following very simple Node app: var express = require('express'); var app = express(); app.get('/',function(req,res,next){ res.end(JSON.stringify(process.memoryUsage())); }); app.listen(8888); By simply holding down the "refresh" hotkey @ http:// localhost:8888/ I can watch the RSS