From fcef4639ca06674225cf330d43041ce303619638 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 15 Aug 2024 22:37:21 +0200 Subject: [PATCH] Fix itests on machines with lots of processors (#17263) When this JVM variable is not set Jetty creates selectors based on the number of available processors (`Runtime.getRuntime().availableProcessors()`). Jetty will also throw an exception when there is a mismatch between the max thread pool size and the number of selectors. This causes issues with the default thread pool size of 10 on machines with more than 10 available processors. See also [`SelectorManager.defaultSelectors(Executor)`](https://github.com/jetty/jetty.project/blob/70015831e5195ba74da6383c4ab7c90c56bb08af/jetty-io/src/main/java/org/eclipse/jetty/io/SelectorManager.java#L71-L80). Signed-off-by: Wouter Born --- itests/itest-common.bndrun | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itests/itest-common.bndrun b/itests/itest-common.bndrun index 580261550dc..aad8d953a8a 100644 --- a/itests/itest-common.bndrun +++ b/itests/itest-common.bndrun @@ -25,7 +25,8 @@ Test-Cases: ${classes;CONCRETE;PUBLIC;NAMED;*Test} # This property is set by the build-helper-maven-plugin in the itests pom.xml -runvm: \ -Djdk.util.zip.disableZip64ExtraFieldValidation=true,\ - -Dorg.osgi.service.http.port=${org.osgi.service.http.port} + -Dorg.osgi.service.http.port=${org.osgi.service.http.port},\ + -DJETTY_AVAILABLE_PROCESSORS=4 # The integration test itself does not export anything. Export-Package: