Re: HttpClient -- possible resource leak?

2004-06-10 Thread Ortwin Glück
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

HttpClient -- possible resource leak?

2004-06-09 Thread Michael Mastroianni
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,

Re: HttpClient -- possible resource leak?

2004-06-09 Thread Ortwin Glück
Michael Mastroianni wrote: responseBody = method.getResponseBodyAsString(); java.io.FileWriter fw = new java.io.FileWriter(m_sPath + \\ + m_sFile);

RE: HttpClient -- possible resource leak?

2004-06-09 Thread olegk
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

RE: HttpClient -- possible resource leak?

2004-06-09 Thread Michael Mastroianni
] [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

RE: HttpClient -- possible resource leak?

2004-06-09 Thread olegk
-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

RE: HttpClient -- possible resource leak?

2004-06-09 Thread Michael Mastroianni
-- 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

RE: HttpClient -- possible resource leak?

2004-06-09 Thread olegk
[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

RE: HttpClient -- possible resource leak?

2004-06-09 Thread Michael Mastroianni
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