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

automatically reload its log 4j configuration file upon modification with log4j without server restart
Making log4j loggers visible accross mutiple applications that are deployed on same server
How to use/deploy Logger from Log4J with remote jboss container?
create log4j depending on level using .properties file
settings in jboss-log4j.xml not taking effect
JBOSS 5 LOG4J ExceptionInInitializerError
Log4j - blocking a particular class
log4j - How do I include date/time in file names AND delete older logs?
log4j aligned ConversionPattern
log4j DailyRollingFileAppender switching to new file and also continues to write in the previous day file
Using log4j with JBoss 7.1
Not able to initialise application data source on creating a connection pool using BoneCP
Log4j logs not rolling on size constraint when server is up
Pass MDC parameter to file name in Log4cxx
Is there any open source program that integrates logs in log4j format in a distributed system to a Cassandra DB?
logging configuration with log4j.properties, cannot exclude package from logging to console

Categories

HOME
netbeans
omnet++
isabelle
c#-4.0
read-eval-print-loop
getelementsbytagname
analysis
ravendb
ezpublish
android-youtube-api
basic
google-cloud-spanner
ups
vaadin7
windows-7-x64
ef-migrations
plunker
java-3d
restful-authentication
centos6.5
elasticsearch-net
unboundid
react-chartjs
xquery-3.0
siesta-swift
http-get
calibre
stringtemplate
language-concepts
amazon-kinesis-kpl
environment-modules
x11-forwarding
dynamics-crm-2013
occlusion
hue
ansible-playbook
ncalc
spring-security-kerberos
isbn
logfiles
upstart
jlink
domain-model
pebble-watch
worker-thread
np-complete
qtwebview
sqldf
spring-mongodb
titanium-android
crosswalk-runtime
word-vba-mac
visual-c++-2008
wdf
flash-cs5
lua-5.1
packagist
rtbkit
lemon
wordml
kcachegrind
deis
vstest.console.exe
lustre
directoryservices
fscommand
operator-precedence
cctv
rdtsc
navigationservice
funcunit
bundles
jboss-weld
listings
jplaton
comaddin
enterprisedb
http-unit
quickdialog
rdoc
pysimplesoap
labwindows
tridion-worldserver
regsvr32
cinema-4d
mongomapper
jmock
html-input
site.master
revisions
suppress
dbisam
commodore
paul-graham

Resources

Encrypt Message