jetty/jetty.project

Provide a thread pool that limits virtual threads creation

Open

#14,362 opened on Jan 19, 2026

 (0 comments) (0 reactions) (0 assignees)Java (1,913 forks)batch import
EnhancementHelp Wanted

Repository metrics

Stars
 (3,701 stars)
PR merge metrics
 (PR metrics pending)

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