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 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
Configure RollingFlie Appender to rollover at midnight and midday of each day
Log4j does not work with kongchen swagger-maven-plugin

Categories

HOME
cakephp
pandas
image-processing
server
plone
smarty
appx
fft
syntax
webstorm
xmpp
q
fsm
sql-server-2016
installshield
flyway4
azure-storage-tables
uber-api
multiple-records
contact
gitpitch
awesome-wm
google-cloud-ml
vb.net-2010
windows-phone-7
fallback
lombok
facebook-page
invantive-sql
flux
interop
scichart
clickonce
cloudhub
tar
bootstrap-tour
icloud-api
trading
h2db
selectedindexchanged
uninstall
web-api-testing
social-media
maxmind
publish
ejabberd-module
atlassian-crucible
c++-amp
preg-match
binary-data
airconsole
catel
code-contracts
framemaker
openoffice.org
picasso
restlet
lto
serverside-rendering
temporary-files
graphenedb
particles.js
elmah
angular-resource
avconv
termination
clean-architecture
dandelion
datastax-startup
brightcove
colorama
composite-key
flutterwave
setuptools
android-textview
sts-springsourcetoolsuite
underscore.js-templating
player
sdf
cloudbees
ruby-2.2
embedded-code
ibaction
ios9.1
notify
c++03
csquery
gulp-less
castle
intentservice
ccss
flashvars
referrer
simba
gil
frameset
labwindows
work-stealing
whoosh
window-management
data-loss
coredump
hamachi
xdomainrequest
appender
krl
datareader
w3wp.exe
digest-authentication
kdbg
data-driven
xetex
project-hosting
dbisam

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App