Michael Mastroianni wrote:
Something's still wrong though, as the amount of memory being used is
pretty much monotonically increasing with the number of URLs downloaded,
just nowhere near as fast.
Do you have any chance to run a memory profiler like AnalyzeIt (bundled
with recent JBuilder)?
Then
I have a multi-threaded app, using Httpclient to download a few thousand urls at a
time. Currently, I have one MultiThreadedHttpConnectionManager, which the thread
manager creates, and passes around to each of its worker threads.
Each thread has a queue of urls, and it creates a new HttpClient,
Michael Mastroianni wrote:
responseBody = method.getResponseBodyAsString();
java.io.FileWriter fw = new java.io.FileWriter(m_sPath + \\ + m_sFile);
and maximum heap size for the JRE?
Oleg
-- Original Message --
Reply-To: Jakarta Commons Developers List [EMAIL PROTECTED]
Subject: HttpClient -- possible resource leak?
Date: Wed, 9 Jun 2004 10:43:10 -0400
From: Michael Mastroianni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
I have a multi-threaded
] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 11:03 AM
To: Jakarta Commons Developers List
Subject: RE: HttpClient -- possible resource leak?
Michael
Could you provide us with additional details on the execution
environment
of your application?
(1) What version of HttpClient are you
-To: Jakarta Commons Developers List [EMAIL PROTECTED]
Subject: RE: HttpClient -- possible resource leak?
Date: Wed, 9 Jun 2004 11:46:09 -0400
From: Michael Mastroianni [EMAIL PROTECTED]
To: Jakarta Commons Developers List [EMAIL PROTECTED]
Thanks for your help. Here are some details
1. I've tried 2.1
--
Reply-To: Jakarta Commons Developers List
[EMAIL PROTECTED]
Subject: RE: HttpClient -- possible resource leak?
Date: Wed, 9 Jun 2004 11:46:09 -0400
From: Michael Mastroianni [EMAIL PROTECTED]
To: Jakarta Commons Developers List [EMAIL PROTECTED]
Thanks for your help. Here are some details
1
[EMAIL PROTECTED]
Subject: RE: HttpClient -- possible resource leak?
Date: Wed, 9 Jun 2004 12:56:48 -0400
From: Michael Mastroianni [EMAIL PROTECTED]
To: Jakarta Commons Developers List [EMAIL PROTECTED]
It doesn't terminate. Instead, it begins to take more and more cpu, and
just basically hangs
Developers List
[EMAIL PROTECTED]
Subject: RE: HttpClient -- possible resource leak?
Date: Wed, 9 Jun 2004 12:56:48 -0400
From: Michael Mastroianni [EMAIL PROTECTED]
To: Jakarta Commons Developers List [EMAIL PROTECTED]
It doesn't terminate. Instead, it begins to take more and more cpu, and
just