Posted By:
luc_snijers
Posted On:
Tuesday, May 6, 2003 03:53 AM
We use Log4J 1.2.6 in my application developed in jdk1.1.8. This jdk was used to be compatible with PersonalJava. The RollingFileAppender creates 49 logfiles of 250 kb in about 3 days. The software runs on 5 machines. The application has a thread for serial comms and a thread for the GUI event processing. The serial comm thread logs to 2 appenders: a driverlog for driver related classes and the main log for triggered methods of business processing classes. About once every 2 weeks one of the machines hangs for no particular reason. We do see these symptoms: - The main logfile reached the maximum size - When we restart the application logging starts in a clean main logfile and the previou
More>>
We use Log4J 1.2.6 in my application developed in jdk1.1.8. This jdk was used to be compatible with PersonalJava.
The RollingFileAppender creates 49 logfiles of 250 kb in about 3 days. The software runs on 5 machines.
The application has a thread for serial comms and a thread for the GUI event processing. The serial comm thread logs to 2 appenders: a driverlog for driver related classes and the main log for triggered methods of business processing classes.
About once every 2 weeks one of the machines hangs for no particular reason. We do see these symptoms:
- The main logfile reached the maximum size
- When we restart the application logging starts in a clean main logfile and the previous main logfile is renamed with the .1 extension.
As we have no logging at the critical point it's hard to reproduce the problem.
We tried a testprogram that does extensive logging in 10 threads using the same properyfile, but could not reproduce it yet.
Any tip or help is welcome.
Luc Snijers
the configuration of the appender:
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.Append=true
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%5p - %d -- %m%n
log4j.appender.logfile.File=C:\log\twins.log
log4j.appender.logfile.MaxBackupIndex=49
log4j.appender.logfile.MaxFileSize=250KB
<<Less