Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 67401 invoked from network); 14 Jul 2005 20:20:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2005 20:20:10 -0000 Received: (qmail 55256 invoked by uid 500); 14 Jul 2005 20:20:05 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 55168 invoked by uid 500); 14 Jul 2005 20:20:05 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 55110 invoked by uid 99); 14 Jul 2005 20:20:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2005 13:20:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.195.95.133] (HELO lambic.guideworks.tv) (66.195.95.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2005 13:19:59 -0700 Received: by LAMBIC with Internet Mail Service (5.5.2653.19) id <3XBZVQB5>; Thu, 14 Jul 2005 14:19:58 -0600 Message-ID: <687B7858C99ED711B87B00B0D0D1C922030A5256@LAMBIC> From: Steven Terrell To: 'HttpClient User Discussion' Subject: RE: possible memory leak in HttpClient? Date: Thu, 14 Jul 2005 14:19:55 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have run a few more tests, and I did get some better data. I saw a possible leak in the MultiThreadedConnectionManager$HttpConnectionWithReference and MultiThreadedConnectionManager$HttpConnectionAdapter. There were about 40 references to the destination server name still in memory after garbage collection. That's not that many bytes, especially considering how much I'm leaking. --Steve -----Original Message----- From: Steven Terrell [mailto:Steven.Terrell@guideworkstv.com] Sent: Wednesday, July 13, 2005 10:44 AM To: 'HttpClient User Discussion' Subject: RE: possible memory leak in HttpClient? Roland, A leak in the JVM itself might be a possibility. I have seen a few bug reports that indicate JVM might leak if "-server" is used. The heap is not growing, so it must be the permanent space that is growing. There is a JNI portion to my code, but I have checked that every malloc is matched with a free, Every NewStringUTF is matched with a DeleteLocalRef, etc... I am working on how to get the JVM to tell me what is in permanent space. --Steve -----Original Message----- From: Roland Weber [mailto:ROLWEBER@de.ibm.com] Sent: Wednesday, July 13, 2005 9:08 AM To: HttpClient User Discussion Subject: RE: possible memory leak in HttpClient? Hello Steve, > 146.288: [ParNew 9539K->1505K(1023936K), 0.0016320 secs] > 171.336: [ParNew 9569K->1533K(1023936K), 0.0013960 secs] > And here is some output from the end: > 62838.376: [Full GC 8377K->1504K(1023936K), 0.0603750 secs] > 62872.288: [ParNew 9568K->1515K(1023936K), 0.0016150 secs] > > Maybe I am not interpreting the numbers correctly, but I don't see the > leak here. Yet my java process has grown to 1.5 gig. Sounds like a memory leak in the JVM implementation. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org