Skip to content

Commit

Permalink
limit threads to int (availableProcessors() * 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 16, 2024
1 parent 839fbc3 commit 5aba34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom/benchmark/index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5aba34f

Please sign in to comment.