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.MultiThreadedHttpConnection Ma 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]