IBM Support

PH36354: DEADLOCK IN LOGGING CODE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Deadlock in these threads:
    
    "NotificationServiceDispatcher : 43"
    Blocked on: com/ibm/ws/logging/hpel/FormatSet
    Owned by: "WebContainer : 5"
    Java callstack:
    at
    com/ibm/ws/logging/hpel/FormatSet.returnFormatSet(FormatSet.java
    :106(Compiled Code))
    (entered lock:
    com/ibm/ws/logging/hpel/FormatSet, entry
    count: 1)
    at
    com/ibm/ws/logging/TraceLogFormatter.formatTimeAndThread(TraceLo
    gFormatter.java:370(Compiled Code))
    at
    com/ibm/ws/logging/TraceLogFormatter.formatHeaderBasic(TraceLogF
    ormatter.java:471(Compiled Code))
    at
    com/ibm/ws/logging/TraceLogFormatter.formatBasic(TraceLogFormatt
    er.java:202(Compiled Code))
    at
    com/ibm/ejs/ras/TraceLogger.doLog(TraceLogger.java:365(Compiled
    Code))
    at
    com/ibm/ejs/ras/TraceLogger.processEvent(TraceLogger.java:354(Co
    mpiled Code))
    at
    com/ibm/ws/logging/WsHandlerWrapper.publish(WsHandlerWrapper.jav
    a:48(Compiled Code))
    ...
    
    
    "WebContainer : 5"
    Blocked on:
    org/apache/logging/log4j/core/appender/OutputStreamManager
    Owned by: "NotificationServiceDispatcher : 43"
    Java callstack:
    at
    org/apache/logging/log4j/core/appender/OutputStreamManager.write
    Bytes(OutputStreamManager.java:359(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/TextEncoderHelper.writeEnco
    dedText(TextEncoderHelper.java:96(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/TextEncoderHelper.encodeTex
    t(TextEncoderHelper.java:65(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode
    (StringBuilderEncoder.java:68(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode
    (StringBuilderEncoder.java:32(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/PatternLayout.encode(Patter
    nLayout.java:227(Compiled Code))
    ...
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Deadlock in logging code between        *
    *                      OutputStreamManager and FormatSet       *
    *                      objects.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When logging frameworks such as Log4j is configured and
    applications are logging messages and the WebSphere Application
    Server Logging framework tries to log a message, a deadlock
    might occur between the following
    NotificationServiceDispatcher and WebContainer threads:
    Thread Stack:
    "NotificationServiceDispatcher : 43"
    J9VMThread:, omrthread_t:,
    java/lang/Thread:, state:B, prio=5
    Blocked on: com/ibm/ws/logging/hpel/FormatSet
    Owned by: "WebContainer : 5"
    Java callstack:
    at
    com/ibm/ws/logging/hpel/FormatSet.returnFormatSet(FormatSet.java
    :106(Compiled Code))
    (entered lock:
    com/ibm/ws/logging/hpel/FormatSet, entry
    count: 1)
    at
    com/ibm/ws/logging/TraceLogFormatter.formatTimeAndThread(TraceLo
    gFormatter.java:370(Compiled Code))
    at
    com/ibm/ws/logging/TraceLogFormatter.formatHeaderBasic(TraceLogF
    ormatter.java:471(Compiled Code))
    at
    com/ibm/ws/logging/TraceLogFormatter.formatBasic(TraceLogFormatt
    er.java:202(Compiled Code))
    at
    com/ibm/ejs/ras/TraceLogger.doLog(TraceLogger.java:365(Compiled
    Code))
    at
    com/ibm/ejs/ras/TraceLogger.processEvent(TraceLogger.java:354(Co
    mpiled Code))
    at
    com/ibm/ws/logging/WsHandlerWrapper.publish(WsHandlerWrapper.jav
    a:48(Compiled Code))
    ...
    "WebContainer : 5",
    omrthread_t:,
    java/lang/Thread:, state:B, prio=5
    Blocked on:
    org/apache/logging/log4j/core/appender/OutputStreamManager
    Owned by: "NotificationServiceDispatcher : 43"
    Java callstack:
    at
    org/apache/logging/log4j/core/appender/OutputStreamManager.write
    Bytes(OutputStreamManager.java:359(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/TextEncoderHelper.writeEnco
    dedText(TextEncoderHelper.java:96(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/TextEncoderHelper.encodeTex
    t(TextEncoderHelper.java:65(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode
    (StringBuilderEncoder.java:68(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/StringBuilderEncoder.encode
    (StringBuilderEncoder.java:32(Compiled Code))
    at
    org/apache/logging/log4j/core/layout/PatternLayout.encode(Patter
    nLayout.java:227(Compiled Code))
    ...
    

Problem conclusion

  • The code was resolved to fix the deadlock.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.21 and 9.0.5.10. For more information, see 'Recommended
    
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH36354

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-04-16

  • Closed date

    2021-06-15

  • Last modified date

    2021-09-09

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 November 2021