log4j


Log4j logging stops intermittently


We're experiencing some stoppages on our log4j(v1.2.8) INFO logs. We're using a WebSphere(8.5.5) clustered server(vertical) with 3 members that runs on a single machine(UNIX). Stoppage is random; no specific file size, time or when about to rollover
We've first suspected that is a volume related problem as we've tested before on a lower volumed server the problem doesn't occur. I've later tested overloading both servers but I could not replicate the problem.
Average daily production is 175,000 INFO lines. A workaround is available by just changing the timestamp of the log files to resume logging.
Already looked into the suggested fix on Log4j suddenly stops logging but nothing seemed to work. I'm hoping I could get some advise on were to look. Thank you.
log4j.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<root>
<priority value="INFO" />
<appender-ref ref="TEST" />
</root>
<appender name="TEST" class="org.apache.log4j.RollingFileAppender">
<param name="encoding" value="UTF-8" />
<param name="file" value="$test/directory/logs/test${com.test.log.server.name}.log" />
<param name="MaxFileSize" value="10000KB" />
<param name="MaxBackupIndex" value="50" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] [%-12X{username}] [%-12X{servlet}] [%c{1}] %m%n" />
</layout>
</appender>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
</layout>
</appender>
</log4j:configuration>
The value of ${com.test.log.server.name} is declared in WebSphere JVM custom properties on each application server.
Any help would be greatly appreciated.


Related Links

Chainsaw multiple versions of same log4j -sockethub appender on same tomcat
Define Logging Based on packages using BasicConfigurator
JBoss4.2.2 log4j.xml logger tag not working
perf4j LogParser returning empty file
how to configure log4j in a web application using jboss 7.1.1?
How to pretty print dictionary returned by robot.libraries.BuiltIn.BuiltIn.get_variables
log4j: Unrecognized element rollingPolicy
Recursive call to appender error using Log4j2 with Flume
Create an custom appender in log4j which stores the log in memory
Log4j in class not work in jsp page
How to flush log4j appenders when the JVM exits?
Mule Logging slf4j
In chainsaw, what logFormat should be set for the given Log message shown below? I am reading for local file
Log4j sorting logs
log4j additivity with Console- and multiple FileAppender
logger.IsDebugEnabled() always return false

Categories

HOME
google-play
angular-material
office365api
dot
sd-card
yahoo-oauth
google-project-tango
windows-server
ezpublish
bs4
webrequest
session-variables
gorm
ssl-client-authentication
midi
floating-action-button
nstableview
resize
hapi
serilog
connection-string
firefox-webextensions
plunker
autocad-plugin
dcevm
dxf
buildbot
wpfdatagrid
elasticsearch-ruby
ejabberd-module
large-file-upload
skia
contact-form
language-concepts
atl
swisscomdev
libraries
mixture-model
twitch
eclipse-scout
reportingservices-2005
janrain
long-polling
togetherjs
drupal-6
nodebb
knpmenubundle
pdfclown
linode
iso8601
android-fonts
bonobo
asp.net-4.5
clang-static-analyzer
disque
yaws
dataview
vhd
icu4j
deis
cakephp-3.1
tableau-online
php-ci
clipperlib
c++03
ng-animate
android-imagebutton
codeigniter-routing
gulp-less
preferences
neolane
htmlcleaner
xceed-datagrid
concurrent-collections
imdbpy
industrial
gnu-smalltalk
coverflow
ruby-datamapper
ocunit
venn-diagram
errai
objective-c-2.0
nsmanagedobject
adk
fireworks
gcj
inotifycollectionchanged
xfbml
html-input
mozilla-prism
ncqrs
multi-tier
web-architecture
sef
premature-optimization
procedural-music
django-notification





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm