log4j 线程堵塞问题

发布于 2021-11-23 09:15:36 字数 2664 浏览 1001 评论 2

近期对应用服务器进行了压力测试,发现服务器各项资源占用都不高,但处理能力上不去,用jprofiler看了一下很多线程阻塞,以下是截图,求指教

Blocked on monitor id 2 (a org.apache.log4j.spi.RootCategory) since 3:26.110.924
Waiting thread: http-0.0.0.0-80-Processor59 [jboss]
URL: /----.jspx
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
Owning thread: http-0.0.0.0-80-Processor59 [jboss]
URL: /favicon.ico
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
Blocked on monitor id 2 (a org.apache.log4j.spi.RootCategory) since 3:26.111.104
Waiting thread: http-0.0.0.0-80-Processor53 [jboss]
URL: /favicon.ico
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
Owning thread: http-0.0.0.0-80-Processor53 [jboss]
URL: /favicon.ico
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
Blocked on monitor id 2 (a org.apache.log4j.spi.RootCategory) since 3:26.111.950
Waiting thread: http-0.0.0.0-80-Processor94 [jboss]
URL: /favicon.ico
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
Owning thread: http-0.0.0.0-80-Processor94 [jboss]
URL: /favicon.ico
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可是我不能没有你 2021-11-24 08:37:41

换logback

风苍溪 2021-11-23 13:46:36

换,呗。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文