From fc03b485efdc8b5c3217d33f76768370742a08bb Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 20 May 2024 17:29:40 +0200 Subject: [PATCH] Removed 16 CPU cores cap --- svr.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/svr.js b/svr.js index 9f6267e..9c9e9c4 100644 --- a/svr.js +++ b/svr.js @@ -5476,7 +5476,6 @@ function start(init) { SVRJSInitialized = false; closedMaster = true; var cpus = os.availableParallelism ? os.availableParallelism() : os.cpus().length; - if (cpus > 16) cpus = 16; try { var useAvailableCores = Math.round((os.freemem()) / 50000000) - 1; // 1 core deleted for safety... if (cpus > useAvailableCores) cpus = useAvailableCores; @@ -5547,7 +5546,6 @@ function start(init) { // Cluster forking code if (cluster.isPrimary !== undefined && init) { var cpus = os.availableParallelism ? os.availableParallelism() : os.cpus().length; - if (cpus > 16) cpus = 16; try { var useAvailableCores = Math.round((os.freemem()) / 50000000) - 1; // 1 core deleted for safety... if (cpus > useAvailableCores) cpus = useAvailableCores;