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 to json event for logstash
Using log4j.xml to configure JMSAppender
Incorporating ESAPI log4j requirements
Log4j filter by package
Wildfly Logging - How to prevent application log to be logged to serve.log
Liferay 6.2 GA4 portal-log4j-ext.xml reload interval?
Kafka Log4j.xml appender
How to enable log4j for Marathon
QuickFIX/J rotate .messages.log
Escape newlines in zookeeper logs using log4j 1.2 SyslogAppender
Log4j log custom level for specific user(s) in production
BPM Lombardi logging
Silence Debug Logging in HTTPComponents
Mockito Mock log4j appender is not invoked while running unit test
Jooq does not find log4j2 Logger
How to use Spray's logRequestResponse in tests with debug level?

Categories

HOME
proxy
gremlin
nullpointerexception
spring-cloud-stream
analysis
sharepoint-designer
cakephp-2.5
indesign
contact
basic
amazon-cloudformation
user-input
row
mapserver
windows-azure-storage
spring-tool-suite
usergrid
ibm-odm
django-simple-history
fatal-error
transformation
normalizr
scichart
java-3d
abi
underflow
dynamic-featured-image
neo4j-spatial
gitignore
unboundid
instant-messaging
frame
bosh
calibre
phpfreechat
windows-dev-center
form-data
rotational-matrices
mpmediaquery
dosbox
twitch
impersonation
mapzen
sfdc
node-sass
eclipse-gef
jquery-validate
promela
mu
magma
crypt
sqlbulkcopy
google-cdn
pintos
watchconnectivity
merge-conflict-resolution
actionbardrawertoggle
captivenetwork
ios4
oauth2client
ford-fulkerson
freedesktop.org
natvis
qdialog
content-length
computer-algebra-systems
sframe
android-listview
riak-cs
method-parameters
apache-commons-fileupload
tt-news
poller
jboss-weld
mbr
ms-project-server-2010
html4
yui-compressor
enterprisedb
clipper
trusted
cisco-jtapi
automount
netbeans-6.9
yetanotherforum
imac
createwindow
bespin
memory-size
ctp4
defensive-programming
3gp

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile