Yes, it works. THX
Leo

Michael Becke wrote:

Okay, I think I have the fix. It seems that there is a problem releasing connections that throw an exception then closing the response stream. Leo, please try out the patch attached to <http://issues.apache.org/bugzilla/show_bug.cgi?id=22841>.

Mike

On Saturday, August 30, 2003, at 12:59 PM, Michael Becke wrote:

Well, I've narrowed it down a little. It seems that connections made to the host below are not being released. Coincidentally all of these hosts use chunked encoding. I don't know if this is the cause, but it seems suspicious. I'm going to run some more tests.

Attached is the perl script I'm using to find unreleased connections.

bazar.technet.cz
bonusweb.cz
cheaty.bonusweb.cz
foto.katedrala.cz
index.katedrala.cz
mms.idnes.cz
stred.mojenoviny.cz
vtipy.katedrala.cz
www.bonusweb.cz
www.bytycz.cz
www.cestiny.cz
www.domeny.cz
www.ekolist.cz
www.gamesy.cz
www.jarmark.cz
www.kisshady.cz
www.meliorannis.cz
www.mobil.cz
www.netem.cz
www.notebooky.cz
www.palmare.cz
www.plnehry.cz
www.pocketpc.cz
www.reality.cz
www.reality21.cz
www.technet.cz
www2.ticketpro.cz

Mike



On Saturday, August 30, 2003, at 12:50 AM, Michael Becke wrote:

Hi Leo,

Well, I've done some analysis of the log file and I think I have a few answers. It seems that a few connections are not being released. To be exact, 47 connections are not released. 42 of them get reclaimed by the garbage collector, but the other 5 remain in limbo. We'll need to do some more work to figure out why these connections are not released. I wrote a quick perl script that analyzes the log file, which I will post tomorrow. That's all for tonight. I'm going to get some sleep. More to come tomorrow...

Mike

On Friday, August 29, 2003, at 11:38 AM, Leo Galambos wrote:

Hi Mike,

you have it here: http://com-os2.ms.mff.cuni.cz/temp/example.log.gz (2767808B)
I set maxTotalConnection=5.


-g-


Michael Becke wrote:


Hi Leo,

Attached at the bottom of my message is another log4j configuration. This should considerably decrease the amount of logging. It also keeps all of the logging info in a single file. To successfully debug this case we will need all of the logging data for a particular session. In conjunction with this debugging we also need to reduce the time it takes for this error to come up. As I suggested in my email a few day ago you should also try decreasing the number of total connections via MultiThreadedHttpConnectionManager.setMaxTotalConnections().

Mike


log4j.rootLogger=WARN, R


log4j.appender.R=org.apache.log4j.FileAppender
log4j.appender.R.File=example.log
log4j.appender.R.append=false

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

log4j.logger.org.apache.commons.httpclient.HttpMethodBase=DEBUG
log4j.logger.org.apache.commons.httpclient.MultiThreadedHttpConnecti onMa nager=DEBUG
log4j.logger.org.apache.commons.httpclient.HttpConnection=DEBUG



On Thursday, August 28, 2003, at 10:36 PM, Leo Galambos wrote:


Hi Mike,

I've never used log4j and I missed your logging.html page, thus I tried my simple config (see below). Unfortunately, I cannot reproduce the bug easily (-> no test case yet) - the robot has to run more than 6 hours.

BTW: I had to rotate log files due to a huge volume of data, so you can see last 30 log files. I guess the format is obvious from the config file below. If you cannot find what you need, please, edit my log4j cfg file and I will rerun it again.

Thank you
Leo

--

My log4j config:
log4j.rootLogger=debug, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n


log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=example.log

log4j.appender.R.MaxFileSize=1000KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=30

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

log4j.logger.org.apache.commons.httpclient=DEBUG




-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to