Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

99% CPU usage..plz help me where is problem.

124 views
Skip to first unread message

Vikram Lashkari

unread,
Aug 30, 2005, 5:30:02 AM8/30/05
to
hi,
I m running website on win2003,IIS-6. And my website is reaching 99% CPU
usage daily and i have to restart WWW Service. Pleae help me out to find the
problem in my code. I need to know how can i analyze this dump file. I am
pasting the ~*kb200 command's output here. If anyone can help me, by telling
me where is the problem or how to analyze the problem

0:000> ~*kb200

. 0 Id: 11c4.b14 Suspend: 1 Teb: 7ffde000 Unfrozen
ChildEBP RetAddr Args to Child
0006fe58 77f43741 77e41817 00000154 00000000 SharedUserData!SystemCallStub+0x4
0006fe5c 77e41817 00000154 00000000 00000000 ntdll!ZwWaitForSingleObject+0xc
0006fecc 77e4168f 00000154 ffffffff 00000000
kernel32!WaitForSingleObjectEx+0xac
0006fedc 5a3635ae 00000154 ffffffff 00000000 kernel32!WaitForSingleObject+0xf
0006feec 5a364d7d 00264d50 5a3a21d8 00000000
w3dt!WP_CONTEXT::RunMainThreadLoop+0xe
0006fef4 5a3a21d8 00000000 010013b4 5a3a6694 w3dt!UlAtqStartListen+0x2d
WARNING: Stack unwind information not available. Following frames may be
wrong.
0006ff00 5a3a6694 010013ec 010013b4 010017af
w3core!W3_FILE_INFO_CACHE::GetFileInfo+0xc4c8
0006ff0c 010017af 00000007 00263a48 00000000 w3core!UlW3Start+0xd4
0006ff44 0100195e 00000007 00263a48 00264488 w3wp!wmain+0x236
0006ffc0 77e4f38c 00000000 00000000 7ffdf000 w3wp!wmainCRTStartup+0x12f
0006fff0 00000000 0100182f 00000000 78746341 kernel32!BaseProcessStart+0x23

1 Id: 11c4.1330 Suspend: 1 Teb: 7ffdc000 Unfrozen
ChildEBP RetAddr Args to Child
009fff9c 77f4262b 77f6b5b2 00000001 009fffb0 SharedUserData!SystemCallStub+0x4
009fffa0 77f6b5b2 00000001 009fffb0 00000000 ntdll!NtDelayExecution+0xc
009fffb8 77e4a990 00000000 00000000 00000000 ntdll!RtlpTimerThread+0x45
009fffec 00000000 77f6b56d 00000000 00000000 kernel32!BaseThreadStart+0x34

2 Id: 11c4.1118 Suspend: 1 Teb: 7ffd8000 Unfrozen
ChildEBP RetAddr Args to Child
00caff28 77f430c7 77e430bc 00000144 00caff84 SharedUserData!SystemCallStub+0x4
00caff2c 77e430bc 00000144 00caff84 00caff70 ntdll!ZwRemoveIoCompletion+0xc
00caff58 5a302360 00000144 00caff80 00caff84
kernel32!GetQueuedCompletionStatus+0x27
00caff90 5a302531 00000000 00268280 00caffec
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x31
00caffa4 5a301d27 002681a8 00000000 00000000
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x21
00caffb8 77e4a990 00268280 00000000 00000000
w3tp!THREAD_MANAGER::ThreadManagerThread+0x35
00caffec 00000000 5a301cf2 00268280 00000000 kernel32!BaseThreadStart+0x34

3 Id: 11c4.bd8 Suspend: 1 Teb: 7ffd7000 Unfrozen
ChildEBP RetAddr Args to Child
00ceff28 77f430c7 77e430bc 00000144 00ceff84 SharedUserData!SystemCallStub+0x4
00ceff2c 77e430bc 00000144 00ceff84 00ceff70 ntdll!ZwRemoveIoCompletion+0xc
00ceff58 5a302360 00000144 00ceff80 00ceff84
kernel32!GetQueuedCompletionStatus+0x27
00ceff90 5a302531 00000000 002682a0 00ceffec
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x31
00ceffa4 5a301d27 002681a8 00000000 00000000
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x21
00ceffb8 77e4a990 002682a0 00000000 00000000
w3tp!THREAD_MANAGER::ThreadManagerThread+0x35
00ceffec 00000000 5a301cf2 002682a0 00000000 kernel32!BaseThreadStart+0x34

4 Id: 11c4.a00 Suspend: 1 Teb: 7ffd6000 Unfrozen
ChildEBP RetAddr Args to Child
00d2ff28 77f430c7 77e430bc 00000144 00d2ff84 SharedUserData!SystemCallStub+0x4
00d2ff2c 77e430bc 00000144 00d2ff84 00d2ff70 ntdll!ZwRemoveIoCompletion+0xc
00d2ff58 5a302360 00000144 00d2ff80 00d2ff84
kernel32!GetQueuedCompletionStatus+0x27
00d2ff90 5a302531 00000000 00268358 00d2ffec
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x31
00d2ffa4 5a301d27 002681a8 00000000 00000000
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x21
00d2ffb8 77e4a990 00268358 00000000 00000000
w3tp!THREAD_MANAGER::ThreadManagerThread+0x35
00d2ffec 00000000 5a301cf2 00268358 00000000 kernel32!BaseThreadStart+0x34

5 Id: 11c4.c20 Suspend: 1 Teb: 7ffd5000 Unfrozen
ChildEBP RetAddr Args to Child
00d6ff28 77f430c7 77e430bc 00000144 00d6ff84 SharedUserData!SystemCallStub+0x4
00d6ff2c 77e430bc 00000144 00d6ff84 00d6ff70 ntdll!ZwRemoveIoCompletion+0xc
00d6ff58 5a302360 00000144 00d6ff80 00d6ff84
kernel32!GetQueuedCompletionStatus+0x27
00d6ff90 5a302531 00000000 00268378 00d6ffec
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x31
00d6ffa4 5a301d27 002681a8 00000000 00000000
w3tp!THREAD_POOL_DATA::ThreadPoolThread+0x21
00d6ffb8 77e4a990 00268378 00000000 00000000
w3tp!THREAD_MANAGER::ThreadManagerThread+0x35
00d6ffec 00000000 5a301cf2 00268378 00000000 kernel32!BaseThreadStart+0x34

6 Id: 11c4.15b4 Suspend: 1 Teb: 7ffd4000 Unfrozen
ChildEBP RetAddr Args to Child
00e2fcec 77f4372d 77f75297 00000003 00e2fd34 SharedUserData!SystemCallStub+0x4
00e2fcf0 77f75297 00000003 00e2fd34 00000001
ntdll!NtWaitForMultipleObjects+0xc
00e2ffb8 77e4a990 00000000 00000000 00000000 ntdll!RtlpWaitThread+0x158
00e2ffec 00000000 77f75155 00000000 00000000 kernel32!BaseThreadStart+0x34

7 Id: 11c4.111c Suspend: 1 Teb: 7ffaf000 Unfrozen
ChildEBP RetAddr Args to Child
0172ff14 77f43741 77e41817 000001a8 00000000 SharedUserData!SystemCallStub+0x4
0172ff18 77e41817 000001a8 00000000 00000000 ntdll!ZwWaitForSingleObject+0xc
0172ff88 77e4168f 000001a8 ffffffff 00000000
kernel32!WaitForSingleObjectEx+0xac
0172ff98 5a3a59a7 000001a8 ffffffff 00000000 kernel32!WaitForSingleObject+0xf
WARNING: Stack unwind information not available. Following frames may be
wrong.
0172ffb8 77e4a990 00000000 00000000 00000000
w3core!W3_FILE_INFO_CACHE::GetFileInfo+0xfc97
00000000 00000000 00000000 00000000 00000000 kernel32!BaseThreadStart+0x34

8 Id: 11c4.122c Suspend: 1 Teb: 7ffad000 Unfrozen
ChildEBP RetAddr Args to Child
017aff8c 77f4262b 77f6f0fc 00000001 017affac SharedUserData!SystemCallStub+0x4
017aff90 77f6f0fc 00000001 017affac 00000000 ntdll!NtDelayExecution+0xc
017affb8 77e4a990 000ae498 00000000 00000000 ntdll!RtlpIOWorkerThread+0x3d
017affec 00000000 77f6f0bf 000ae498 00000000 kernel32!BaseThreadStart+0x34

9 Id: 11c4.1664 Suspend: 1 Teb: 7ffab000 Unfrozen
ChildEBP RetAddr Args to Child
018afeb4 77f4262b 77e418ea 00000000 018afef8 SharedUserData!SystemCallStub+0x4
018afeb8 77e418ea 00000000 018afef8 00000000 ntdll!NtDelayExecution+0xc
018aff20 77e416ee 000001f4 00000000 791b1753 kernel32!SleepEx+0x68
018aff2c 791b1753 000001f4 19b9225e 0000068d kernel32!Sleep+0xb
018affb8 77e4a990 00000000 00000000 00000000
mscorsvr!ThreadpoolMgr::GateThreadStart+0x54
018affec 00000000 791b16ff 00000000 00000000 kernel32!BaseThreadStart+0x34

10 Id: 11c4.ff4 Suspend: 1 Teb: 7ffaa000 Unfrozen
ChildEBP RetAddr Args to Child
WARNING: Frame IP not in any known module. Following frames may be wrong.
018ef748 791b68b7 018ef7b8 018ef768 791b68e5 0x1911e90
018ef754 791b68e5 00000000 018ef784 02811268
mscorsvr!HelperMethodFrame::LazyInit+0x18
018ef768 791c03a1 00000000 018ef784 00000010
mscorsvr!HelperMethodFrame::HelperMethodFrame+0x1d
018ef7dc 0cc7565d 02811268 022cf1c4 00000000 mscorsvr!JIT_NewFast+0x26
018ef7f8 0cc7b30c 00000014 00000003 022cf1c4 0xcc7565d
018ef888 0c64eaff 00000014 00000003 022cf068 0xcc7b30c
018ef9cc 799ab472 026ca4b8 026ca7c0 799b3fd8 0xc64eaff
018ef9d8 799b3fd8 00000002 00000000 01df20d4 mscorlib_79990000+0x1b472
018efa60 79214224 00000000 00d99a40 02060ccc mscorlib_79990000+0x23fd8
01d76448 24548bca 3c15ff10 8b01de45 8bcb8bd8
mscorsvr!ComCallMLStubCache::CompileMLStub+0x429
01d76448 00000000 3c15ff10 8b01de45 8bcb8bd8 0x24548bca

11 Id: 11c4.af8 Suspend: 1 Teb: 7ffa9000 Unfrozen
ChildEBP RetAddr Args to Child
01a1fe74 77f4372d 77e41bfa 00000003 01a1fec4 SharedUserData!SystemCallStub+0x4
01a1fe78 77e41bfa 00000003 01a1fec4 00000001
ntdll!NtWaitForMultipleObjects+0xc
01a1ff20 77e4b0e4 00000003 01a1ff5c 00000000
kernel32!WaitForMultipleObjectsEx+0x11a
01a1ff38 7924829f 00000003 01a1ff5c 00000000
kernel32!WaitForMultipleObjects+0x17
01a1ffa0 79248216 00000000 00000000 00000000
mscorsvr!DebuggerRCThread::MainLoop+0x90
01a1ffb0 79249a92 01a1ffec 77e4a990 01911eb0
mscorsvr!DebuggerRCThread::ThreadProc+0x68
01a1ffb8 77e4a990 01911eb0 00000000 00000000
mscorsvr!DebuggerRCThread::ThreadProcStatic+0xb
01a1ffec 00000000 79249a87 01911eb0 00000000 kernel32!BaseThreadStart+0x34

12 Id: 11c4.e38 Suspend: 1 Teb: 7ffa8000 Unfrozen
ChildEBP RetAddr Args to Child
01b8ff10 77f43741 77e41817 000002b4 00000000 SharedUserData!SystemCallStub+0x4
01b8ff14 77e41817 000002b4 00000000 00000000 ntdll!ZwWaitForSingleObject+0xc
01b8ff84 77e4168f 000002b4 ffffffff 00000000
kernel32!WaitForSingleObjectEx+0xac
01b8ff94 7920198c 000002b4 ffffffff 00000000 kernel32!WaitForSingleObject+0xf
01b8ffac 79244fbe 00000000 01b8ffec 77e4a990
mscorsvr!gc_heap::gc_thread_function+0x22
01b8ffb8 77e4a990 000d66a8 00000000 00000000
mscorsvr!gc_heap::gc_thread_stub+0x1e
01b8ffec 00000000 79244fa0 000d66a8 00000000 kernel32!BaseThreadStart+0x34

13 Id: 11c4.a58 Suspend: 1 Teb: 7ffa7000 Unfrozen
ChildEBP RetAddr Args to Child
01bcfe10 77f43741 77e41817 000002b4 00000000 SharedUserData!SystemCallStub+0x4
01bcfe14 77e41817 000002b4 00000000 00000000 ntdll!ZwWaitForSingleObject+0xc
01bcfe84 77e4168f 000002b4 ffffffff 00000000
kernel32!WaitForSingleObjectEx+0xac
01bcfe94 7920198c 000002b4 ffffffff 00000000 kernel32!WaitForSingleObject+0xf
01bcfeac 79244fbe 00000000 00000000 00000000
mscorsvr!gc_heap::gc_thread_function+0x22
01bcffb8 77e4a990 000d6db0 00000000 00000000
mscorsvr!gc_heap::gc_thread_stub+0x1e
01bcffec 00000000 79244fa0 000d6db0 00000000 kernel32!BaseThreadStart+0x34

14 Id: 11c4.1410 Suspend: 1 Teb: 7ffa6000 Unfrozen
ChildEBP RetAddr Args to Child
01c0fdfc 77f4372d 77e41bfa 00000002 01c0fe4c SharedUserData!SystemCallStub+0x4
01c0fe00 77e41bfa 00000002 01c0fe4c 00000001
ntdll!NtWaitForMultipleObjects+0xc
01c0fea8 77e4b0e4 00000002 793edd78 00000000
kernel32!WaitForMultipleObjectsEx+0x11a
01c0fec0 79272c03 00000002 793edd78 00000000
kernel32!WaitForMultipleObjects+0x17
01c0fee0 79207cf5 000002d0 00000000 79246e33
mscorsvr!WaitForFinalizerEvent+0x5a
01c0ff24 7922d5e1 00000000 b9db5bfc 00000000
mscorsvr!GCHeap::FinalizerThreadStart+0x96
01c0ffb8 77e4a990 000d7a18 00000000 00000000
mscorsvr!Thread::intermediateThreadProc+0x44
01c0ffec 00000000 7922d5a0 000d7a18 00000000 kernel32!BaseThreadStart+0x34

15 Id: 11c4.11c Suspend: 1 Teb: 7ffa4000 Unfrozen
ChildEBP RetAddr Args to Child
01f4ff38 77f4262b 77e418ea 00000001 01f4ff7c SharedUserData!SystemCallStub+0x4
01f4ff3c 77e418ea 00000001 01f4ff7c 000003e8 ntdll!NtDelayExecution+0xc
01f4ffa4 791b4f99 000003e8 00000001 00000000 kernel32!SleepEx+0x68
01f4ffb8 77e4a990 00000000 00000000 00000000
mscorsvr!ThreadpoolMgr::TimerThreadStart+0x30
01f4ffec 00000000 791b4f69 00000000 00000000 kernel32!BaseThreadStart+0x34

16 Id: 11c4.bb0 Suspend: 1 Teb: 7ffa3000 Unfrozen
ChildEBP RetAddr Args to Child
0cf9ff24 77f4262b 77e418ea 00000001 0cf9ff68 SharedUserData!SystemCallStub+0x4
0cf9ff28 77e418ea 00000001 0cf9ff68 00000000 ntdll!NtDelayExecution+0xc
0cf9ff90 79230bfc ffffffff 00000001 00000000 kernel32!SleepEx+0x68
0cf9ffb8 77e4a990 00000000 00000000 00000000
mscorsvr!ThreadpoolMgr::WaitThreadStart+0x45
0cf9ffec 00000000 79230bda 0009f338 00000000 kernel32!BaseThreadStart+0x34

17 Id: 11c4.1560 Suspend: 1 Teb: 7ffda000 Unfrozen
ChildEBP RetAddr Args to Child
0dffff14 77d06718 77d067e0 0dffff58 00000000 SharedUserData!SystemCallStub+0x4
0dffff18 77d067e0 0dffff58 00000000 00000000 user32!NtUserGetMessage+0xc
0dffff34 771bb5a9 0dffff58 00000000 00000000 user32!GetMessageW+0x31
0dffff74 771bb527 00007530 77e4178f 01e77520
ole32!CDllHost::STAWorkerLoop+0x70
0dffff90 771bb472 771625ea 772723d8 77160000 ole32!CDllHost::WorkerThread+0xc6
0dffff94 771625ea 772723d8 77160000 01e77520 ole32!DLLHostThreadEntry+0x9
0dffffac 77162653 00000000 00000000 77e4a990 ole32!CRpcThread::WorkerLoop+0x1e
0dffffb8 77e4a990 01e77520 00000000 00000000
ole32!CRpcThreadCache::RpcWorkerThreadEntry+0x1f
0dffffec 00000000 77162634 01e77520 00000000 kernel32!BaseThreadStart+0x34

18 Id: 11c4.fe0 Suspend: 1 Teb: 7ff5e000 Unfrozen
ChildEBP RetAddr Args to Child
0fdcff70 77f430c7 77f7e6ae 000000c4 0fdcffb0 SharedUserData!SystemCallStub+0x4
0fdcff74 77f7e6ae 000000c4 0fdcffb0 0fdcffb4 ntdll!ZwRemoveIoCompletion+0xc
0fdcffb8 77e4a990 00000000 00000000 00000000 ntdll!RtlpWorkerThread+0x3b
0fdcffec 00000000 77f7e673 00000000 00000000 kernel32!BaseThreadStart+0x34

19 Id: 11c4.1090 Suspend: 1 Teb: 7ff5b000 Unfrozen
ChildEBP RetAddr Args to Child
0eaafe20 77f4313f 77c57b85 0000010c 0eaaff7c SharedUserData!SystemCallStub+0x4
0eaafe24 77c57b85 0000010c 0eaaff7c 00000000
ntdll!NtReplyWaitReceivePortEx+0xc
0eaaff8c 77c60829 77c60771 00095e60 00000000
rpcrt4!LRPC_ADDRESS::ReceiveLotsaCalls+0x193
0eaaff90 77c60771 00095e60 00000000 00000000 rpcrt4!RecvLotsaCallsWrapper+0x9
0eaaffb0 77c60857 00089f98 77e4a990 0cf409c8
rpcrt4!BaseCachedThreadRoutine+0x9c
0eaaffb8 77e4a990 0cf409c8 00000000 00000000 rpcrt4!ThreadStartRoutine+0x17
0eaaffec 00000000 77c60840 0cf409c8 00000000 kernel32!BaseThreadStart+0x34

20 Id: 11c4.edc Suspend: 1 Teb: 7ffd9000 Unfrozen
ChildEBP RetAddr Args to Child
0176f9fc 77f43741 77e41817 00000230 00000000 SharedUserData!SystemCallStub+0x4
0176fa00 77e41817 00000230 00000000 0176fa44 ntdll!ZwWaitForSingleObject+0xc
0176fa70 77e4168f 00000230 00009c40 00000000
kernel32!WaitForSingleObjectEx+0xac
0176fa80 791b578b 00000230 00009c40 00000000 kernel32!WaitForSingleObject+0xf
0176faa4 791dbe6e 00000000 77109e3f 770e0000
mscorsvr!ThreadpoolMgr::WorkerThreadStart+0x3a
0176ffb8 77e4a990 0012e0f8 00000000 00000000
mscorsvr!ThreadpoolMgr::intermediateThreadProc+0x44
0176ffec 00000000 791dbe2d 0012e0f8 00000000 kernel32!BaseThreadStart+0x34

21 Id: 11c4.17d4 Suspend: 1 Teb: 7ffac000 Unfrozen
ChildEBP RetAddr Args to Child
0e1cf8fc 77f43741 77e41817 00000230 00000000 SharedUserData!SystemCallStub+0x4
0e1cf900 77e41817 00000230 00000000 0e1cf944 ntdll!ZwWaitForSingleObject+0xc
0e1cf970 77e4168f 00000230 00009c40 00000000
kernel32!WaitForSingleObjectEx+0xac
0e1cf980 791b578b 00000230 00009c40 00000000 kernel32!WaitForSingleObject+0xf
0e1cf9a4 791dbe6e 00000000 ffffffff 77f47cf2
mscorsvr!ThreadpoolMgr::WorkerThreadStart+0x3a
0e1cffb8 77e4a990 0cf37098 00000000 00000000
mscorsvr!ThreadpoolMgr::intermediateThreadProc+0x44
0e1cffec 00000000 791dbe2d 0cf37098 00000000 kernel32!BaseThreadStart+0x34

22 Id: 11c4.ad0 Suspend: 1 Teb: 7ffa5000 Unfrozen
ChildEBP RetAddr Args to Child
0fd6ff7c 77f430c7 71b246f7 00000660 0fd6ffc0 SharedUserData!SystemCallStub+0x4
0fd6ff80 71b246f7 00000660 0fd6ffc0 0fd6ffb4 ntdll!ZwRemoveIoCompletion+0xc
0fd6ffb8 77e4a990 71b30be0 00000000 00000000 mswsock!SockAsyncThread+0x67
0fd6ffec 00000000 71b24690 0ce66ad8 00000000 kernel32!BaseThreadStart+0x34

23 Id: 11c4.1674 Suspend: 1 Teb: 7ffa1000 Unfrozen
ChildEBP RetAddr Args to Child
0fe4ff70 77f430c7 77f7e6ae 000000c4 0fe4ffb0 SharedUserData!SystemCallStub+0x4
0fe4ff74 77f7e6ae 000000c4 0fe4ffb0 0fe4ffb4 ntdll!ZwRemoveIoCompletion+0xc
0fe4ffb8 77e4a990 00000000 00000000 00000000 ntdll!RtlpWorkerThread+0x3b
0fe4ffec 00000000 77f7e673 00000000 00000000 kernel32!BaseThreadStart+0x34

Thanks
Vikram

Jason Shay [MSFT]

unread,
Aug 30, 2005, 4:46:03 PM8/30/05
to
type !runaway. That will tell you which thread(s) are using all of your
cpu.

--
Jason Shay [MSFT]
js...@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Vikram Lashkari" <VikramL...@discussions.microsoft.com> wrote in
message news:D2DB805C-6F7C-4EBC...@microsoft.com...

Hans De Smaele

unread,
Sep 1, 2005, 2:17:03 AM9/1/05
to
Hi Vikram,

maybe you should have a look at the paper I wrote about the usage of WinDbg.
For your problem, start with the "Unwind1" exercise, then "CrashDivider" and
then "Spinning threads". You can download the paper from Microsoft's website
at :
http://www.microsoft.com/belux/nl/msdn/community/articles/feb05_applicationdebugging.mspx

good luck,

Hans.

0 new messages