hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Moved] (HTTPCLIENT-1402) improve httpcore perfomence and reduce memory usage
Date Mon, 23 Sep 2013 11:50:05 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski moved HTTPCORE-350 to HTTPCLIENT-1402:

          Component/s:     (was: HttpCore)
    Affects Version/s:     (was: 4.2.5)
                           (was: 4.3)
                       4.3 Final
             Workflow: Default workflow, editable Closed status  (was: jira)
                  Key: HTTPCLIENT-1402  (was: HTTPCORE-350)
              Project: HttpComponents HttpClient  (was: HttpComponents HttpCore)
> improve httpcore  perfomence and reduce memory usage
> ----------------------------------------------------
>                 Key: HTTPCLIENT-1402
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1402
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.3 Final
>         Environment: all platform
>            Reporter: yuexiaojun
>              Labels: patch
>         Attachments: http-client.patch, image2013-9-15 12-55-55.png, image2013-9-15 12-57-20.png,
image2013-9-16 9-49-4.png, loadversion.patch
> when I new  DefaultHttpClient instance without defaultParams  and then getParams,It will
loadVersionInfo  by classloader from jar file everytime,this operation is slowly and unworthy;
So I add a hashmap to cache versioninfo at org.apache.http.util.VersionInfo#loadVersionInfo
and read the version only first time ;
> test case and result:
> case : create 100000 httpclient objects and recycle memory with Xmx512m Xms512m
> before: bring about 118 younggc and spent 84509ms
> after:  bring about 15 younggc and only spent 3352ms
> when physical memory is insufficient ,this issues may cause http response very slowly;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

View raw message