Re: Dozens of "HttpClient-N-SelectorManager" threads created

2025-01-23 Thread Bernd
, 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

Re: Dozens of "HttpClient-N-SelectorManager" threads created

2025-01-23 Thread Daniel Fuchs
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

Dozens of "HttpClient-N-SelectorManager" threads created

2025-01-23 Thread Ruslan Ibragimov
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,