是node还是express存在内存泄漏?
如下代码,内存占用会随着请求次数而增加。 node: v0.12.7 express: v4.13.3 pm2: v0.14.7
var express = require(“express”); var app = express(); app.use(function (req, res, next) { console.log(req.ip, req.method, req.path);
next();
}); app.all('*’, function (req, res) { res.end(); }); app.listen(80);