Browse Source

log heapdiff, trying to track down high mem actions

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
60b2ade455
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 2
      app.js

2
app.js

@ -521,6 +521,8 @@ app.use(function(req, res, next) {
var time = Date.now() - req.startTime;
var memdiff = process.memoryUsage().heapUsed - req.startMem;
console.log(`Heapdiff: path=${req.path}, heapdiff=${memdiff}`);
if (global.influxdb) {
var points = [];
points.push({

Loading…
Cancel
Save