prom-client icon indicating copy to clipboard operation
prom-client copied to clipboard

collectDefaultMetrics (node:1) Warning: Possible perf_hooks memory leak detected. There are 1947 entries in the Performance Timeline. Use the clear methods to remove entries that are no longer needed or set performance.maxEntries equal to a higher value (currently the maxEntries is 150).

Open openainext opened this issue 4 years ago • 2 comments

const { collectDefaultMetrics } = client;

collectDefaultMetrics();

Warning: Possible perf_hooks memory leak detected. There are 1947 entries in the Performance Timeline. Use the clear methods to remove entries that are no longer needed or set performance.maxEntries equal to a higher value (currently the maxEntries is 150).

openainext avatar Mar 11 '21 08:03 openainext

We had the same issue in an express app running on an older node version (8.17.0), upgrading the node version seemed to have stopped these loggings. (I think it may be related to how the GC metrics are collected ...)

markmeeus avatar Sep 17 '21 08:09 markmeeus

any updates on this? I'm currently running node 12 with clusterMetrics and node.exe process are always incresing memory allocation :-(

lucianodltec avatar Oct 06 '21 14:10 lucianodltec