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

Combining log4j and log4perl logs
grep-friendly logging of stack traces
What does these properties in log4j.properties mean?
how can I configure log4j so that it stops showing xml escape characters
log4j JDBCAppender create tables on demand
Hadoop enable logging
Is there an appender/configuration for log4j or Logback that allows you to write to a GZIP file?
Proper way to declare log4j
Log4j - log file per package
log4j and websphere JVM custom properties
Configuring Chainsaw to read logs from file via network share
Logging with log4j on tomcat jruby-rack for a Rails 3 application
ClassNotFoundException javax.mail.internet.AddressException when running hibernate3:hbm2ddl
No log4j automatic compression after app restart
weblogic log4j with incorrect time in logs
Log4j - Log only specified method to file

Categories

HOME
sendgrid
netsuite
octobercms
rsyslog
spring-jdbc
fingerprint
swagger-ui
qore
multiple-records
remote-access
decomposition
iolanguage
fatal-error
textfield
predix
tar
blazemeter
crosstab
one-to-many
tdd
entitlements
libuv
webkitspeechrecognition
gsmcomm
unboundid
key-value-observing
google-sites-2016
catel
google-qpx-express-api
column-family
calibre
webtest
caret
google-api-nodejs-client
picasso
dartium
hockeyapp
libvpx
occlusion
google-closure
outlook-api
.net-4.6.2
galleria
google-datalayer
jedis
errordocument
tropo
aurelia-validation
lowpass-filter
sqlclient
nsarray
sqldf
hittest
firmata
instant
fadeout
captivenetwork
ipconfig
design-by-contract
javax.sound.midi
varargs
drawbitmap
ibaction
vstest.console.exe
truevault
operator-precedence
rdtsc
socketexception
googlemock
heisenbug
doskey
xceed-datagrid
datagridviewcolumn
transcoding
page-layout
quantlib-swig
odata4j
hungarian-algorithm
yui-compressor
orchardcms-1.7
sharp-repository
clipper
chuck
mt
dice
objective-c-2.0
qtkit
transactionscope
pydot
subgurim-maps
blackberry-playbook
f#-powerpack
jmock
lpeg
w3wp.exe
web-application-design
.nettiers
ctp4
commodore
document-conversion
uiq3

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile