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

logging the classname of the calling application in wrapper logging library using SLf4j
File name is generating as “Application.log.1” on reaching maxFileSize
WSO2 Carbon log4j custom appender
Wrong log4j is being loaded to project
Grok pattern for the following log4j pattern
split log file after reaching its max value using log4j
What is the difference between log4j-1.2-api and log4j-api (without the 1.2 suffix)
log4j - What if 1 log size is greater than file size?
log4j.xml produce java.io.FileNotFoundException, but log4j.properties create the file
How to Create daily log files in java using Log4J
Writing to own log file in curation task
When to use Slf4j & Log4j
How to debug in Xtext with log4j?
log4j L parameter display line number at windows debug but in compiled class at linux i get “?”
Log4j2 Custom appender: ERROR Attempted to append to non-started appender
How to filter RabbitMQ console listening messages in the application

Categories

HOME
log4j
ionic-framework
wso2-am
osgi
activiti
gremlin
drivers
tesseract
google-docs
gis
retrofit
ravendb
onelogin
gitpitch
elasticsearch-hadoop
primary-key
adobe-analytics
midi
alignment
size
systemc
openrefine
invantive-sql
text-rendering
introduction
jtextfield
predix
facebook-instant-articles
accessor
tibco-mdm
lcd
rundeck
opennlp
vlsi
dynamic-featured-image
poltergeist
greendao
jaxb2
bpel
madlib
skia
binary-data
gtrendsr
host
plsql-psp
main
git-merge
c11
xenforo
ssjs
unobtrusive-validation
elasticsearch-plugin
azure-ml
spring-security-kerberos
password-encryption
no-www
sas-jmp
taffy
youcompleteme
filepicker
rails-routing
blogengine.net
jlink
dropbox-php
diagnostics
composite-key
zendesk-app
orthogonal
angular-strap
firmata
fody
skobbler-maps
simplewebrtc
essence
revolution-r
cloudbees
energy
python-3.2
system.reflection
fscommand
asp.net-dynamic-data
file-copying
fpml
xojo
typeof
cloud-connect
srs
viadeo
page-layout
jmapviewer
yui-compressor
android-screen-support
jelly
wsdl-2.0
reddot
semantic-diff
eclipse-templates
cinema-4d
jmock
wise
preference
data-driven
data-acquisition

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