Proposal: Custom executor for CompletableFuture in HttpClientImpl

Alan Bateman alan.bateman at oracle.com
Mon Oct 6 18:12:25 UTC 2025



On 06/10/2025 18:22, Michał G. wrote:
> :
>
> Additionally, since the CompletableFuture default executor is reused, on machines with one or two CPU cores it will fallback to ThreadPerTaskExecutor, causing a new system thread to be created for every HTTP request.
Note that this changed in JDK 25 so that the async methods without an 
explicit Executor will submit to the common pool.

-Alan.


More information about the net-dev mailing list