Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F94B105F5 for ; Mon, 23 Sep 2013 12:34:14 +0000 (UTC) Received: (qmail 48222 invoked by uid 500); 23 Sep 2013 12:31:24 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 46981 invoked by uid 500); 23 Sep 2013 12:31:18 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 44833 invoked by uid 99); 23 Sep 2013 12:31:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 12:31:07 +0000 Date: Mon, 23 Sep 2013 12:31:07 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1402) improve httpcore perfomence and reduce memory usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1402. ------------------------------------------- Resolution: Fixed Committed with some changes to SVN trunk. Similar fix applied to HttpAsyncClient. Oleg > 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 > Fix For: 4.3.1 > > 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