From 5aba34f1902d5b2d12fff9d871f8394251f25ea4 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Mon, 16 Dec 2024 15:50:11 +0100 Subject: [PATCH] limit threads to int (availableProcessors() * 2) --- custom/benchmark/index.cfm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/benchmark/index.cfm b/custom/benchmark/index.cfm index a2c4b33..7806892 100644 --- a/custom/benchmark/index.cfm +++ b/custom/benchmark/index.cfm @@ -21,7 +21,7 @@ appSettings = getApplicationSettings(); systemOutput("Precise Math: " & (appSettings.preciseMath ?: "not supported"), true); - max_threads = int(createObject("java", "java.lang.Runtime").getRuntime().availableProcessors() * 1.5); + max_threads = int(createObject("java", "java.lang.Runtime").getRuntime().availableProcessors() * 2); systemOutput("Using [#max_threads#] parallel threads, i.e. java.lang.Runtime.availableProcessors()", true); systemOutput("Sleeping for 5s, allow server to startup and settle", true); systemOutput("", true);