Different Logging Behavior Caused by Bundled slf4j on 12.1.3 (Doc ID 2061438.1)

Last updated on OCTOBER 28, 2015

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 to 12.1.3.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

It observed significant impact on server logging after migrated from WLS 10.3.5 to WLS 12.1.3.

During loading test, there is obvious performance decreasing. The Weblogic server log file and stdout redirect log file are both flooded with logs in warning severity. 

Thread dump shows that lock contention between threads. Dozens of threads are blocked as below sample.

"BLOCKED on java.util.logging.ConsoleHandler@49e2b636 owned by "[ACTIVE] ExecuteThread: '96' for queue: 'weblogic.kernel.Default (self-tuning)'" Id=186 

"[ACTIVE] ExecuteThread: '96' for queue: 'weblogic.kernel.Default

(self-tuning)'" Id=186 RUNNABLE (in native) 
at java.io.FileOutputStream.writeBytes(Native Method) 
at java.io.FileOutputStream.write(FileOutputStream.java:356) 
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:93) 
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:151) 
- locked java.io.BufferedOutputStream@ff578958 
at java.io.PrintStream.flush(PrintStream.java:362) 
- locked java.io.PrintStream@dac4c760 
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:309) 
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153) 
- locked java.io.OutputStreamWriter@392d4fc 
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:289) 
- locked java.io.PrintStream@dac4c760 
at java.util.logging.StreamHandler.flush(StreamHandler.java:253) 
- locked java.util.logging.ConsoleHandler@49e2b636 
at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:117)
at java.util.logging.Logger.log(Logger.java:621)
at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:588)

This issue does not happen on Weblogic server 10.3.5 and 10.3.6.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms