From 274569325e49d99f8eab07e02ff8e2a757ecd6c9 Mon Sep 17 00:00:00 2001 From: younglim Date: Wed, 16 Oct 2024 16:03:56 +0800 Subject: [PATCH] Support large heap of up to 6GB --- public/electron/scanManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/electron/scanManager.js b/public/electron/scanManager.js index 8806c9ba..11db1f10 100644 --- a/public/electron/scanManager.js +++ b/public/electron/scanManager.js @@ -133,7 +133,7 @@ const validateUrlConnectivity = async (scanDetails) => { const response = await new Promise(async (resolve) => { const check = spawn( "node", - [`${enginePath}/dist/cli.js`, ...getScanOptions(scanDetails)], + [`--max-old-space-size=6144`,`${enginePath}/dist/cli.js`, ...getScanOptions(scanDetails)], { cwd: resultsPath, env: {