gpt4 book ai didi

java - 关于 websphere Thread Hung 的问题

转载 作者:行者123 更新时间:2023-11-29 03:43:46 27 4
gpt4 key购买 nike

我在开发应用程序中面临 Java 线程挂起的问题。以下是日志跟踪:

020 SystemOut     O --------------------------------------------------------------------------------
[8/1/12 11:00:21:136 CDT] 00000023 ThreadMonitor W WSVR0605W: Thread "WebContainer : 6" (00000027) has been active for 731757 milliseconds and may be hung. There is/are 2 thread(s) in total in the server that may be hung.
[8/1/12 11:00:24:626 CDT] 00000021 FreePool E J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/RTNCTR_DEV.
[8/1/12 11:00:24:636 CDT] 00000021 SystemOut O
[8/1/12 11:00:24:636 CDT] 00000021 SystemOut O --------------------------------------------------------------------------------

无法找到此问题的根本原因,请提供可能的解决方案,请大家给我建议,因为我被困住了..!!

最佳答案

对于初学者,您想通过请求 javacore thread dump 来找到特定线程卡住的位置。 .

在 UNIX 平台上,您只需对进程 ID 发出 kill -3。在 Windows 上,您需要使用 wsadmin commands (它也适用于 UNIX,但不如 kill -3 快)。

在生成的文件中搜索 WebContainer : 6,该线程的堆栈跟踪将向您显示该线程在应用程序或 WebSphere 中的什么位置被卡住了。

参见 Problem determination for javacore files from WebSphere Application Server .

关于java - 关于 websphere Thread Hung 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11948223/

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