• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Problem rolling files with log4j DailyRollingFileAppender and websphere app server

 
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!
 
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 ?

 
author
Posts: 3281
7
Mac OS X Eclipse IDE Java
  • 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
Boost this thread!