高 CPU 和大量计时器

发布于 2025-01-04 02:23:19 字数 982 浏览 1 评论 0原文

我发现我的服务器上的 CPU 很高。我进行了故障转储并启动了 Windbg。

我正在关注,但不知道该怎么做:

From !runaway
Top 5 thread related to CPU`enter code here`
  Thread       Time
  33:1758      0 days 0:08:58.109
  24:128c      0 days 0:05:09.531
  25:15b0      0 days 0:04:53.281
  23:a94       0 days 0:04:50.343
  26:bf8       0 days 0:04:48.984

来自!threadpool

0:000> !threadpool
CPU utilization 100%
Worker Thread: Total: 18 Running: 17 Idle: 1 MaxLimit: 400 MinLimit: 4
Work Request in Queue: 4
AsyncTimerCallbackCompletion TimerInfo@159b81b8
AsyncTimerCallbackCompletion TimerInfo@185e48a8
Unknown Function: 6a2aa293  Context: 3a1bc2e0
--------------------------------------
Number of Timers: 30
--------------------------------------
Completion Port Thread:Total: 1 Free: 1 MaxFree: 8 CurrentLimit: 0 MaxLimit: 400 MinLimit: 4
0:000> !threads
ThreadCount: 56
UnstartedThread: 0
BackgroundThread: 56
PendingThread: 0
DeadThread: 0
Hosted Runtime: no

有人可以帮助我吗?

I am seeing high CPU on my server. I took a crash dump and fired up windbg.

I am getting following but not sure what to make of it:

From !runaway
Top 5 thread related to CPU`enter code here`
  Thread       Time
  33:1758      0 days 0:08:58.109
  24:128c      0 days 0:05:09.531
  25:15b0      0 days 0:04:53.281
  23:a94       0 days 0:04:50.343
  26:bf8       0 days 0:04:48.984

from !threadpool

0:000> !threadpool
CPU utilization 100%
Worker Thread: Total: 18 Running: 17 Idle: 1 MaxLimit: 400 MinLimit: 4
Work Request in Queue: 4
AsyncTimerCallbackCompletion TimerInfo@159b81b8
AsyncTimerCallbackCompletion TimerInfo@185e48a8
Unknown Function: 6a2aa293  Context: 3a1bc2e0
--------------------------------------
Number of Timers: 30
--------------------------------------
Completion Port Thread:Total: 1 Free: 1 MaxFree: 8 CurrentLimit: 0 MaxLimit: 400 MinLimit: 4
0:000> !threads
ThreadCount: 56
UnstartedThread: 0
BackgroundThread: 56
PendingThread: 0
DeadThread: 0
Hosted Runtime: no

Can anybody help me with this?

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

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

发布评论

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

评论(1

缱绻入梦 2025-01-11 02:23:19

单个转储是没有用的。您需要捕获多个挂起转储,每个转储间隔一分钟,然后使用 !runaway 找到罪魁祸首。之后!CLRStack 和 kb 可以向您显示有关该线程的更多信息。

A single dump is useless. You need to capture several hang dumps with one minute interval each, and then use !runaway to find the culprit. After that !CLRStack and kb can show you more info about that thread.

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