diff --git a/src/util/memUsage.ts b/src/util/memUsage.ts index 4bd9559..44146d7 100644 --- a/src/util/memUsage.ts +++ b/src/util/memUsage.ts @@ -219,7 +219,7 @@ function ongoingMemoryDump() { ); if (loggingEnabled) { // Enforce heap snapshot folder size limit (< 1GB) before writing a new snapshot. - const MAX_DIR_BYTES = 1024 * 1024 * 1024; // 1GB + const MAX_DIR_BYTES = 5 * 1024 * 1024 * 1024; // 5GB const TARGET_REDUCED_BYTES = Math.floor(MAX_DIR_BYTES * 0.9); // prune down to 90% const baseDir = path.dirname(log.transports.file.getFile().path); const heapDir = path.join(baseDir, "heap-snapshots");