jetty/jetty.project

Provide a thread pool that limits virtual threads creation

Open

#14362 opened on Jan 19, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (3,701 stars) (1,913 forks)batch import
EnhancementHelp Wanted

Description

Jetty version(s) 12.1.x

Enhancement Description Following discussion in #14330, would be nice to document how to create a thread pool that actually limits the number of virtual threads.

Would a QueuedThreadPool with a virtual ThreadFactory be enough?

Contributor guide