log memory usage every minute

This commit is contained in:
Brian Gough 2015-08-20 17:03:58 +01:00
parent f237f7c3cc
commit 0215b12a5f

View file

@ -72,6 +72,8 @@ module.exports = MemoryMonitor =
Metrics.gauge("memory.gc-interval", gcInterval)
#Metrics.gauge("memory.cpu-time-bucket", CpuTimeBucket)
logger.log mem, "process.memoryUsage()"
if global.gc? && readyToGc()
gcTime = (executeAndTime global.gc).toFixed(2)
memAfterGc = inMegaBytes process.memoryUsage()