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

What should be the logstash grok filter for this log4j log?
log4j PatternLayout time since last log
log4j dynamically change daily rolling file appender name by thread id
How do I save the error, info and trace reports separately in three different files? I've use log4j2
log4j not working with a ejb application deployed on weblogic
Stack Overflow Error when writing log by using log4j
While Running Junit Test i get Error java.lang.NoClassDefFoundError: org.apache.log4j.Priority
Unable to create log file Using log4j in java
How to get velocity.log file using log4j.properties file. i don't want to involve velocity.properties file
How to use log4j write logs into a mysql database on Jmeter?
Upon exceeding maximum size new log file is not generated
Log4j logs are not writing for a jar file that is inside war file
Liferay Portlet Log4j Properties File Configuration
log4j type GenericObjectPool does not take parameters
log4j with bluemix cloudant DB
Wildfly 10 ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender

Categories

HOME
pdf
amazon-ec2
omnet++
pycharm
layout
rsync
infragistics
jgroups
win32gui
retrofit
android-youtube-api
pheatmap
contact
gitpitch
node-pdfkit
qt-creator
apache-cayenne
dtrace
msp430
designer
foselasticabundle
solaris-10
nodatime
immutable.js
object-detection
ehcache
accessor
bootstrap-duallistbox
xacml
gitignore
uisplitview
contact-form
perlin-noise
windows-dev-center
cloud-code
suricata
swisscomdev
gesture
streamreader
greenrobot-eventbus
firebase-admin
midl
total-commander
dotcover
alphabet
nstextview
font-size
sybase-asa
knpmenubundle
epson
specrun
instant
bstr
blackberry-10
qgraphicsview
jfugue
tarjans-algorithm
ios9.1
myo
fpml
device-manager
typeof
valueconverter
xceed-datagrid
hyprlinkr
ember-charts
cloud-connect
srs
monomac
farseer
inbox
odata4j
html4
html-editor
selected
mt
nsnetservice
objective-c-2.0
appconkit
enter
gcj
dentrix
icanhaz.js
forums
boost-smart-ptr
anti-piracy
zend-decorators
3gp

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App