关键字 Flat locked by
3LKMONOBJECT org/apache/logging/log4j/core/appender/OutputStreamManager@0x000000060FB6B3C0: Flat locked by "WebContainer : 3" (J9VMThread:0x0000000007C55A00), entry count 1 3LKWAITERQ Waiting to enter: 3LKWAITER "WorkManager.MulticastWM : 19" (J9VMThread:0x000000000380D000) 3LKWAITER "WebContainer : 8" (J9VMThread:0x0000000007EF2000) 3LKWAITER "WebContainer : 10" (J9VMThread:0x0000000008B53E00) 3LKWAITER "WorkManager.MulticastWM : 49" (J9VMThread:0x00000000089A7600) 3LKWAITER "WebContainer : 16" (J9VMThread:0x0000000008EB8D00)
3号线程阻塞8、10、16、19号线程
1 3XMTHREADBLOCK Blocked on: org/apache/logging/log4j/core/appender/OutputStreamManager@0x000000060FB6B3C0 Owned by: "WebContainer : 3" (J9VMThread:0x0000000007C55A00, java/lang/Thread:0x00000006152DF108) 2 3XMHEAPALLOC Heap bytes allocated since last GC cycle=24576 (0x6000) 3 3XMTHREADINFO3 Java callstack: 4 4XESTACKTRACE at org/apache/logging/log4j/core/appender/OutputStreamManager.writeBytes(OutputStreamManager.java:352(Compiled Code)) 5 4XESTACKTRACE at org/apache/logging/log4j/core/layout/TextEncoderHelper.writeEncodedText(TextEncoderHelper.java:96(Compiled Code)) 6 4XESTACKTRACE at org/apache/logging/log4j/core/layout/TextEncoderHelper.encodeText(TextEncoderHelper.java:65(Compiled Code)) 7 4XESTACKTRACE at org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode(StringBuilderEncoder.java:68(Compiled Code)) 8 4XESTACKTRACE at org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode(StringBuilderEncoder.java:32(Compiled Code)) 9 4XESTACKTRACE at org/apache/logging/log4j/core/layout/PatternLayout.encode(PatternLayout.java:228(Compiled Code)) 10 4XESTACKTRACE at org/apache/logging/log4j/core/layout/PatternLayout.encode(PatternLayout.java:60(Compiled Code)) 11 4XESTACKTRACE at org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:197(Compiled Code)) 12 4XESTACKTRACE at org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:190(Compiled Code)) 13 4XESTACKTRACE at org/apache/logging/log4j/core/appender/AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:181(Compiled Code)) 14 4XESTACKTRACE at org/apache/logging/log4j/core/config/AppenderControl.tryCallAppender(AppenderControl.java:161(Compiled Code)) 15 4XESTACKTRACE at org/apache/logging/log4j/core/config/AppenderControl.callAppender0(AppenderControl.java:134(Compiled Code)) 16 4XESTACKTRACE at org/apache/logging/log4j/core/config/AppenderControl.callAppenderPreventRecursion(AppenderControl.java:125(Compiled Code)) 17 4XESTACKTRACE at org/apache/logging/log4j/core/config/AppenderControl.callAppender(AppenderControl.java:89(Compiled Code)) 18 4XESTACKTRACE at org/apache/logging/log4j/core/config/LoggerConfig.callAppenders(LoggerConfig.java:542(Compiled Code)) 19 4XESTACKTRACE at org/apache/logging/log4j/core/config/LoggerConfig.processLogEvent(LoggerConfig.java:500(Compiled Code)) 20 4XESTACKTRACE at org/apache/logging/log4j/core/config/LoggerConfig.log(LoggerConfig.java:483(Compiled Code)) 21 4XESTACKTRACE at org/apache/logging/log4j/core/config/LoggerConfig.log(LoggerConfig.java:417(Compiled Code)) 22 4XESTACKTRACE at org/apache/logging/log4j/core/config/AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:82(Compiled Code)) 23 4XESTACKTRACE at org/apache/logging/log4j/core/Logger.log(Logger.java:161(Compiled Code)) 24 4XESTACKTRACE at org/apache/logging/log4j/spi/AbstractLogger.tryLogMessage(AbstractLogger.java:2205(Compiled Code)) 25 4XESTACKTRACE at org/apache/logging/log4j/spi/AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2159(Compiled Code)) 26 4XESTACKTRACE at org/apache/logging/log4j/spi/AbstractLogger.logMessageSafely(AbstractLogger.java:2142(Compiled Code)) 27 4XESTACKTRACE at org/apache/logging/log4j/spi/AbstractLogger.logMessage(AbstractLogger.java:1994(Compiled Code)) 28 4XESTACKTRACE at org/apache/logging/log4j/spi/AbstractLogger.logIfEnabled(AbstractLogger.java:1852(Compiled Code)) 29 4XESTACKTRACE at nc/bs/logging/impl/log4j2/Log4j2LoggerPlugin.log(Log4j2LoggerPlugin.java:103(Compiled Code)) 30 4XESTACKTRACE at nc/bs/logging/impl/log4j2/Log4j2LoggerPlugin.log(Log4j2LoggerPlugin.java:119(Compiled Code)) 31 4XESTACKTRACE at nc/bs/logging/Logger.debug(Logger.java:182(Compiled Code)) 32 4XESTACKTRACE at nc/bs/framework/rmi/server/RMIHandlerImpl$1.run(RMIHandlerImpl.java:80(Compiled Code)) 33 4XESTACKTRACE at java/util/concurrent/Executors$RunnableAdapter.call(Executors.java:522(Compiled Code)) 34 4XESTACKTRACE at java/util/concurrent/FutureTask.runAndReset(FutureTask.java:319(Compiled Code)) 35 4XESTACKTRACE at java/util/concurrent/ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:191(Compiled Code)) 36 4XESTACKTRACE at java/util/concurrent/ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305(Compiled Code)) 37 4XESTACKTRACE at java/util/concurrent/ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160(Compiled Code)) 38 4XESTACKTRACE at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 39 4XESTACKTRACE at nc/bs/framework/execute/server/SecureRunnable.run(SecureRunnable.java:46) 40 4XESTACKTRACE at org/granite/commonj/CommonjWork.run(CommonjWork.java:31) 41 4XESTACKTRACE at com/ibm/ws/asynchbeans/J2EEContext.run(J2EEContext.java:1046) 42 4XESTACKTRACE at com/ibm/ws/asynchbeans/WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:199) 43 4XESTACKTRACE at com/ibm/ws/asynchbeans/CJWorkItemImpl.run(CJWorkItemImpl.java:237) 44 4XESTACKTRACE at com/ibm/ws/util/ThreadPool$Worker.run(ThreadPool.java:1909(Compiled Code))View Code
org/apache/logging/log4j/core/appender/OutputStreamManager日志输出慢导致线程被阻塞,解决办法,加大was SystemOut.log 日志大小
注意:最后,如果需要让此设置生效,则必须重启WAS
标签:Code,java,Compiled,javacore,阻塞,logging,org,pk,4XESTACKTRACE From: https://www.cnblogs.com/omsql/p/17996590