You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Lucas Pouzac (JIRA)" <ji...@apache.org> on 2014/08/11 14:02:13 UTC

[jira] [Comment Edited] (HTTPCLIENT-1538) Monitor contention at org.apache.http.impl.client.CloseableHttpResponseProxy.newProxy(HttpResponse original)

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092707#comment-14092707 ] 

Lucas Pouzac edited comment on HTTPCLIENT-1538 at 8/11/14 12:00 PM:
--------------------------------------------------------------------

Sorry, I'm migrating several projects on the 4.3.5 version without using deprecated classes. 
Indeed this problem corresponds to the use of AbstractHttpClient. I am being removed from its use. 

But why CloseableHttpResponseProxy class is not deprecated? The "@since 4.3.0" also misled me.


was (Author: lpouzac):
Sorry, I'm migrating several projects on the 4.3.5 version without httpclient using deprecated classes. 
Indeed this problem corresponds to the use of AbstractHttpClient. I am being removed from its use. 

But why CloseableHttpResponseProxy class is not deprecated? The "@since 4.3.0" also misled me.

> Monitor contention at org.apache.http.impl.client.CloseableHttpResponseProxy.newProxy(HttpResponse original)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1538
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1538
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.3.5, 4.4 Alpha1
>            Reporter: Lucas Pouzac
>            Priority: Minor
>              Labels: concurrency, performance
>         Attachments: monitor_contention_closeablehttpresponseproxy.png
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> CloseableHttpResponseProxy.newProxy() indirectly calls java.lang.reflect.Proxy.getProxyClass0(), which calls into JRE lib method causing monitor contention. See screen shot
> I create a Pull Request [#15|https://github.com/apache/httpclient/pull/15]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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