The pool can be instantiated only withThe pool can be instantiated only with maxTotal = 20 (maximum number of connections), to me it's a bug, but anyway, By default maxTotal = 20ForkJoinPool of Tomcat is constructed with parallelism (maximum number of connectionsi.e. carrier thread count), to me it's a bug, but anyway 20, so let's verify whether the application will survive with smaller number of connections. In StuckApplicationTest we reduce the number of threads down to 20 and indeed the tests does not hang any more even having virtual threads enabled on the server side.