Hi Jorg,
I'm referring to the HttpClient Performance Guide: HttpClient - HttpClient Performance Optimization Guide
Specifically:
Generally it is recommended to have a single instance of HttpClient per communication component or even per application. However, if the application makes use of HttpClient only very infrequently, and keeping an idle instance of HttpClient in memory is not warranted, it is highly recommended to explicitly shut down the multithreaded connection manager prior to disposing the HttpClient instance. This will ensure proper closure of all HTTP connections in the connection pool.
I've already modified a lot of the code so only one httpclient instance is created per step and noticed a difference. I also have scheduler services that iterate through number of requests. So was wondering if there was a way to refer to just one instance for all components of the application.