mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
log memory usage every minute
This commit is contained in:
parent
f237f7c3cc
commit
0215b12a5f
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue