You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Joan Balagueró <jo...@grupoventus.com> on 2014/03/14 01:29:16 UTC

Final questions about HC4.3.3

Hello,

 

Migration from 4.1 to 4.3 is finished. Just some questions about certain
parameters:

 

1.       For performance, is it recommended to set true to ‘setTcpNoDelay’
and false to ‘setStaleConnectionCheckEnabled’? I tried several combinations
in my stress tests and I don’t see any significance difference.

 

2.       What does the “RequestConfig.custom().setAuthenticationEnabled()”
refers to?

 

3.       And HttpClients.custom().disableAuthCaching() and
disableConnectionState()?

 

4.       The HttpClients.custom().disableCookieManagement() is equivalent to
“objHttp.removeRequestInterceptorByClass(RequestAddCookies.class);this.objHt
tp.removeResponseInterceptorByClass(ResponseProcessCookies.class);” in 4.1.?

 

 

I’ve noticed an improvement of between 8-10% in the number of requests that
4.3. can process compared with 4.1. In addition, it seems the garbage
generated by 4.3. is less than 4.1 (the time between young generations is at
least slightly greater with 4.3).

 

So, congratulations. Good work !

 

Joan.


Re: Final questions about HC4.3.3

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2014-03-14 at 01:29 +0100, Joan Balagueró wrote:
> Hello,
> 
>  
> 
> Migration from 4.1 to 4.3 is finished. Just some questions about certain
> parameters:
> 
>  
> 
> 1.       For performance, is it recommended to set true to ‘setTcpNoDelay’
> and false to ‘setStaleConnectionCheckEnabled’? I tried several combinations
> in my stress tests and I don’t see any significance difference.
> 
>  

In my experience TCP_NO_DELAY makes a massive impact on performance in
therms of data throughput. But it might depend on what exactly you are
trying to measure.

> 
> 2.       What does the “RequestConfig.custom().setAuthenticationEnabled()”
> refers to?
> 

http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/client/config/RequestConfig.html

>  
> 
> 3.       And HttpClients.custom().disableAuthCaching() and
> disableConnectionState()?
> 
>  

http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/authentication.html#d5e701
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/advanced.html#stateful_conn


> 
> 4.       The HttpClients.custom().disableCookieManagement() is equivalent to
> “objHttp.removeRequestInterceptorByClass(RequestAddCookies.class);this.objHt
> tp.removeResponseInterceptorByClass(ResponseProcessCookies.class);” in 4.1.?
> 
>  

Pretty much.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org