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 with liferay and tomcat
How to keep single file and overwrite the contents in the same file using log4cxx?
Log4j: xml configuration: category tag
Log4j - trouble writing to own log file
log4j logging at ERROR level when set at INFO
How to configure log4j and Selenium Grid?
log4cxx: configuring appender with arguments
Help me understand log4j appender additivity with respect to priority level
Using Log4j NTEventLogAppender with ActiveMQ running as service under Windows Server 2008
how to use log4j with Netbeans 6.9.1 for Java desktop application
perf4J with MDC
log4j and NoSQL databases
Cannot set log4j logger level with Tomcat 6
How do you make a 'NOT LIKE' filter in Chainsaw?
log4j truncates the stacktrace
Combining log4j and log4perl logs

Categories

HOME
pandas
relative-path
lodash
mean-stack
yahoo-oauth
razor
analysis
paw-app
jpeg
disassembler
serverspec
kibana-4
kentor-authservices
hex-editors
jsdoc
propel
solaris-10
interop
crystal-reports-2008
visual-composer
conemu
jquery-ajaxq
devops
icloud-api
android-widget
xpages-ssjs
poltergeist
kannel
user-interaction
uninstall
assistant
facebook-apps
objectanimator
tinymce-4
preg-match
fabric8
media-queries
frame
bosh
create-table
karaf
user-controls
sfdc
node-gyp
arena-simulation
checkboxlist
s
jquery-validate
darcs
r-forge
epson
iso8601
lync-client-sdk
removechild
vmware-tools
fody
nsfilemanager
storekit
suffix-tree
itextpdf
netmq
javax.sound.midi
wso2cloud
prerequisites
lib.web.mvc
cyclomatic-complexity
feedback
libressl
0xdbe
ideamart
mono-embedding
truevault
website-monitoring
gadt
fpml
preferences
internet-connection
html-helper
valueconverter
system.net.webexception
doskey
xceed-datagrid
ember-charts
app42
intentservice
ftps
shellexecute
sqlperformance
comaddin
html-editor
spyware
infobox
joyent
ecl
digest-authentication
webkit.net
premature-optimization
aquaticprime
msdev
document-conversion

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile