Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logback 1.2.6 AsyncAppender-Worker-ASYNC_STDOUT worker thread hang at native write method. #730

Open
peaceyear opened this issue Nov 6, 2023 · 1 comment

Comments

@peaceyear
Copy link

The AsyncAppender-Worker-ASYNC_STDOUT worker stack is as follows:

at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)

  • locked [0x00000000b013a610] (a java.io.BufferedOutputStream)
    at java.io.PrintStream.write(PrintStream.java:480)
  • locked [0x00000000b011d570] (a java.io.PrintStream)
    at java.io.FilterOutputStream.write(FilterOutputStream.java:97)at ch.qos.logback.core.joran.spi.ConsoleTarget$1.write(ConsoleTarget.java:37)
    at ch.qos.logback.core.OutputStreamAppender.writeBytes(OutputStreamAppender.java:199)
    at ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:231)
    at ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:102)
    at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
    at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
    at ch.qos.logback.core.AsyncAppenderBase$Worker.run(AsyncAppenderBase.java:290)
    --

then the arrayBlockingQueue soon be full, and all business threads stand awaiting.
It happened once, and is difficult to repeat in the production environment.
Could you tell me how can I find the cause of what happened in the invocation of write?
The Java application runs in the containerd runtime on linux os orchestrated by Kubernetes. thanks!

@peaceyear
Copy link
Author

sorry, The Java application runs in the docker runtime on linux os orchestrated by Kubernetes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant