hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Terrell <Steven.Terr...@guideworkstv.com>
Subject RE: possible memory leak in HttpClient?
Date Thu, 14 Jul 2005 20:19:55 GMT
   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


Mime
View raw message