Steven Webber
10/21/2025, 9:02 AMval customJetty = jettyServer(maxRequestThreads = 200, meterRegistry = prometheusMeterRegistry)
myService.asK8sServer(serverConfig = customJetty, environment, healthApp = healthApp()).start()
With a Quarkus based framework I'd switch to virtual threads using an annotation and that solves the issue.
For http4K, should we switch to a different http server or change config for the existing one? Is the recommended approach to try and use java virtual threads?Michal Wachowski
10/21/2025, 9:20 AMJettyLoom
https://www.http4k.org/ecosystem/http4k/reference/servers/Steven Webber
10/21/2025, 9:22 AMSteven Webber
10/21/2025, 9:54 AMval threadPool = InstrumentedQueuedThreadPool(
meterRegistry,
emptyList(),
maxRequestThreads,
min(maxRequestThreads, 8),
60_000,
requestQueue
)