, Januar 23, 2025 7:59 PMAn: net-dev@openjdk.org Betreff: Dozens of "HttpClient-N-SelectorManager" threads created I encounter strange behavior of java.net.http.HttpClient in my application running in amazoncorretto:17.0.13, after some time instead of just one HttpClient-1-SelectorManager
Hi Ruslan,
There is only 1 SelectorManager thread per HttpClient instance.
If you see HttpClient-18-SelectorManager, it's because at
least 18 (or 19?) HttpClient instances have been created.
Prior to JDK 21, the SelectorManager thread needs two conditions
before it can exit:
1. All strong re
I encounter strange behavior of java.net.http.HttpClient in my application
running in amazoncorretto:17.0.13, after some time instead of just one
HttpClient-1-SelectorManager thread I'm starting observing dozens of such
threads.
I'm creating only one instance of HttpClient in whole application,