Re: What is the relation between TIME_WAIT and HTTP Client calls to a RestService?

2015-06-04 Thread Check Peck
are reusing/pooling your client connections, right? Also - you could tune your OS to shutdown connections faster. You can easily google you issue. Stefan 2015-06-04 17:51 GMT+02:00 Check Peck comptechge...@gmail.com: I am using Spring RestTemplate to make a HTTP Calls to my RestService. I am

How to use RestTemplate with PoolingHttpClientConnectionManager

2015-06-07 Thread Check Peck
I am using Spring RestTemplate as my HttpClient in my project and I want to use connection pooling feature with RestTemplate. After reading more on HttpClient and RestTemplate, I was able to come up with this example which uses PoolingHttpClientConnectionManager class with RestTemplate but I am

What is the relation between TIME_WAIT and HTTP Client calls to a RestService?

2015-06-04 Thread Check Peck
I am using Spring RestTemplate to make a HTTP Calls to my RestService. I am using spring framework 3.1.1 version of RestTemplate. I cannot upgrade this since that's what we are using in our company. Now machine which is running my code (which uses RestTemplate) to make call to my RestService, I

Re: How to decide optimal settings for setMaxTotal and setDefaultMaxPerRoute?

2015-06-23 Thread Check Peck
Does anyone have any idea on this? On Mon, Jun 22, 2015 at 2:51 PM, Check Peck comptechge...@gmail.com wrote: I have a RestService running on 45 different machines in three datacenters (15 in each datacenter). I have a client which uses RestTemplate to call these machines depending on where

How to decide optimal settings for setMaxTotal and setDefaultMaxPerRoute?

2015-06-22 Thread Check Peck
I have a RestService running on 45 different machines in three datacenters (15 in each datacenter). I have a client which uses RestTemplate to call these machines depending on where the call is coming from. If the call is coming from DC1, then it will call my rest service running in DC1 and

Re: Do I need to worry about NoHttpResponseException?

2015-07-13 Thread Check Peck
Does anyone have any idea on this? On Sat, Jul 11, 2015 at 6:24 PM, Check Peck comptechge...@gmail.com wrote: I am using Apache HttpClient 4.5 version in my library and I am seeing below exception coming up always: I am not sure from where this exception is coming. I/O exception

Re: using apache httpclient efficiently in multithreaded environment

2016-05-13 Thread Check Peck
You mean to say this is inefficient? If yes, then what should I do instead of below? String responseBody = IOUtils.toString(entity.getContent(), StandardCharsets .UTF_8); On Fri, May 13, 2016 at 4:03 AM, Oleg Kalnichevski <ol...@apache.org> wrote: > On Thu, 2016-05-12 at 13:17 -0700, C