• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem rolling files with log4j DailyRollingFileAppender and websphere app server

 
Gisselle Szaritsa
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Evan, sorry but I'm afraid I don't have an answer for you
 
Evan Caballero
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic