gpt4 book ai didi

java - Weblogic 服务器获取 StuckThreadMaxTime 异常。我如何解决它?

转载 作者:行者123 更新时间:2023-11-29 04:49:30 27 4
gpt4 key购买 nike

我公开了一个 REst 服务,它调用一个脚本文件(shell 脚本),这需要 20 分钟来执行和发送响应。我在日志中收到以下异常。

<Error> <WebLogicServer> <AdminServer>     
<[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self- tuning)'> <<WLS Kernel>> <> <> <1457678291528> <BEA-000337>
<[STUCK] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "606" seconds working on the request "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started time: 606763 ms
[
POST /svc/oneclick/wsAuto/createTemplate/005056A509C4 HTTP/1.1
User-Agent: oneclick
Accept: */*
X-Forwarded-For: 10.19.120.25
X-Forwarded-Host: 10.19.120.48
X-Forwarded-Server: XXX-XXX-template-sa1.XXX.com
Connection: Keep-Alive

]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
Thread-34 "[STUCK] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, suspended, waiting, priority=1, DAEMON> {-- Waiting for notification on: java.lang.UNIXProcess@9a5ed5a[fat lock]

最佳答案

因为您的处理需要 20 分钟并且 StuckThreadMaxTime 的默认设置设置为 600 秒,所以您会在日志中看到此类错误。您有两个选择:

  • 加快处理速度
  • 将 StuckThreadMaxTime 设置为更大的值(它放置在 weblogic 控制台上的以下位置:domain > Environment > Servers > Admin Server > Configuration/Tuning)

关于java - Weblogic 服务器获取 StuckThreadMaxTime 异常。我如何解决它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35934513/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com