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

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
Printing context root in loggers Log4j
How can I retain existing log file permissions with Log4J DailyRollingFileAppender
How do I override a Maven Plugin's log4j Configuration?
How to log only from 8.45 to 18.15 with log4j?
log4j - filtering by class instead of level
Log4j on weblogic10 only logs to console
log4j JDBCAppender rotate table name
Logging of multiple appenders to same logger

Categories

HOME
xamarin
wso2
kde
relayjs
relay
at-command
yahoo-oauth
filtering
yarn
graphql
packages
gps
serverspec
bs4
slurm
gitpitch
cloudkit
dax
quicklook
windows-azure-storage
openrefine
connection-string
visjs
jasonette
wkwebview
mmap
jndi
sqlcipher
sparse-matrix
cas
centos6.5
traffic
windows-server-2000
contact-form
framemaker
phpfreechat
textmate
android-ble
http-digest
dosbox
code-search-engine
sqlite2
hue
opshub
tasker
sfdc
core-plot
janrain
nomethoderror
total-commander
gpx
taffy
parentheses
theming
alphabet
carrot
diagnostics
ifs
spring-mongodb
spring-cache
smart-table
background-service
radtreelist
ado.net-entity-data-model
intrusion-detection
asp.net-4.5
wapiti
associative-array
cloudbees
retina
sframe
0xdbe
appfabric-cache
sankey-diagram
bridge.net
inmobi
directoryservices
bitcoinj
aapt
funcunit
terminal-services
floating-point-precision
.aspxauth
android-screen-support
interface-orientation
drools-planner
http-unit
cisco-jtapi
enter
spring-portlet-mvc
eclipse-templates
pyinotify
subviews
nhibernate.search
swing-app-framework
dbisam
commodore

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