prom-client
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).
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).
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 ...)
any updates on this? I'm currently running node 12 with clusterMetrics and node.exe process are always incresing memory allocation :-(