From 9f788c2c57105784b4742a05e861e85fb67ca2eb Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 1 Oct 2022 20:15:30 +0200 Subject: [PATCH] backup: reduce memory logs --- src/scripts/backupupload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/backupupload.js b/src/scripts/backupupload.js index ae82d70e3..e1d85958d 100755 --- a/src/scripts/backupupload.js +++ b/src/scripts/backupupload.js @@ -56,8 +56,8 @@ function dumpMemoryInfo() { return (bytes / Math.pow(1024, i)).toFixed(2) * 1 + '' + sizes[i]; } - debug(`process: rss: ${h(mu.rss)} heapUsed: ${h(mu.heapUsed)} heapTotal: ${h(mu.heapTotal)} external: ${h(mu.external)}`); - debug(`v8 heap: used ${h(hs.used_heap_size)} total: ${h(hs.total_heap_size)} max: ${h(hs.heap_size_limit)}`); + debug(`process: rss=${h(mu.rss)} heapUsed=${h(mu.heapUsed)} heapTotal=${h(mu.heapTotal)} external=${h(mu.external)}` + + ` v8 heap: used=${h(hs.used_heap_size)} total=${h(hs.total_heap_size)} max=${h(hs.heap_size_limit)}`); } (async function main() { @@ -65,7 +65,7 @@ function dumpMemoryInfo() { await settings.initCache(); dumpMemoryInfo(); - const timerId = setInterval(dumpMemoryInfo, 30000); + const timerId = setInterval(dumpMemoryInfo, 180 * 1000); const [uploadError] = await safe(backuptask.upload(remotePath, format, dataLayoutString, throttledProgressCallback(5000))); debug('upload completed. error: ', uploadError);