GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes Problem rolling files with log4j DailyRollingFileAppender and websphere app server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem rolling files with log4j DailyRollingFileAppender and websphere app server" Watch "Problem rolling files with log4j DailyRollingFileAppender and websphere app server" New topic
Author

Problem rolling files with log4j DailyRollingFileAppender and websphere app server

Gisselle Szaritsa
Greenhorn

Joined: Jan 13, 2003
Posts: 13
I'm seeing some strange behavior. We have an application that uses log4j and is running on Websphere 5.1 app server. I'm using the DailyRollingFileAppender to log to a file. Our application is in production. We're seeing that for a week or two the files will roll back correctly every day and then all of the sudden they will stop rolling. We have our application running on three app servers. The files will stop rolling on all three of the app servers. What I've noticed is that the files will roll if we restart the entire cluster (the three app servers). Then, if we happen to restart the application, but not the appservers, the app will log, but it won't roll the files.

Has anybody encountered such a problem before? If so, what have you done about it. We don't want to have to restart the entire cluster. We want to be able to just restart the app and have log4j work properly and roll our logs.

By the way, I've also tried using the RollingFileAppender (not the daily one) and we see the same problems.

Any help on this one would be greatly appreciated.

Thanks!
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Hi there !

I have the same problem on a WAS 6.1 app server

Giselle, did you find a solution for that ? Someone else ?

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Welcome to Javaranch Evan, sorry but I'm afraid I don't have an answer for you


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
thanks ;)
 
GeeCON Prague 2014
 
subject: Problem rolling files with log4j DailyRollingFileAppender and websphere app server