diff --git a/bin/www.js b/bin/www.js index 7c5976ce..1b2e24ad 100644 --- a/bin/www.js +++ b/bin/www.js @@ -13,7 +13,7 @@ const debug = Debug(`${DEBUG_NAMESPACE}:www:${process.pid}`); // INITIALIZE THE DATABASE await initializeDatabase(); const directoryName = path.dirname(fileURLToPath(import.meta.url)); -const processCount = Math.min(getConfigProperty('application.maximumProcesses'), os.cpus().length); +const processCount = Math.min(getConfigProperty('application.maximumProcesses'), os.cpus().length * 2); const applicationName = getConfigProperty('application.applicationName'); process.title = `${applicationName} (Primary)`; debug(`Primary pid: ${process.pid}`); diff --git a/bin/www.ts b/bin/www.ts index 3036eb4f..571ec646 100644 --- a/bin/www.ts +++ b/bin/www.ts @@ -22,7 +22,7 @@ const directoryName = path.dirname(fileURLToPath(import.meta.url)) const processCount = Math.min( getConfigProperty('application.maximumProcesses'), - os.cpus().length + os.cpus().length * 2 ) const applicationName = getConfigProperty('application.applicationName')