WinDbg + SOS Debug w3wp process memory Crash issue

Source: Internet
Author: User

WinDbg + SOS Debug w3wp process memory Crash issue
1. Load compliant files
C:\symbols; Srv*c:\symbols*http://msdl.microsoft.com/download/symbols;

2. Load SOS.dll
. Load C:\Windows\Microsoft.NET\Framework\v2.0.50727\SOS.dll

3. View the size of objects inside the managed heap
! Dumpheap-stat
72a52524 4780 19149568 system.int64[]
66300224 1404204 22467264 System.ServiceModel.Description.XmlName
01239298 3170 25187084 Free
6F75AC00 1692875 40629000 System.Xml.XmlDictionaryString
72a40d1c 60413 47153628 system.reflection.emit.__fixupdata[]
66301D38 979563 50937276 System.ServiceModel.Description.MessagePartDescription
6f75b8a8 143024 59241664 System.Collections.Generic.Dictionary ' 2+entry[[system.string, mscorlib],[ System.Xml.XmlDictionaryString, system.runtime.serialization]][]
72a52ee4 634786 82323112 system.int32[]
72a53498 154589 83105136 system.collections.hashtable+bucket[]
72a24518 2153323 89750416 system.object[]
72a50d48 4210817 305563628 System.String
72a537b8 526411 309971176 system.byte[]

4. For large objects inside the result set, execute! Dumpheap-mt Method Table Address
1984e140 72a537b8 262160
19892618 72a537b8 131088
198b2628 72a537b8 131088
198d2638 72a537b8 131088
1990f488 72a537b8 131088
1992f4a8 72a537b8 262160
1998af48 72a537b8 262160
199caf68 72a537b8 262160
19a0af78 72a537b8 131088
19a2cfb0 72a537b8 262160
19A6CFC0 72a537b8 262160
19aacfe0 72a537b8 262160
19AECFF0 72a537b8 131088
19b0f028 72a537b8 131088
19b35090 72a537b8 131088
19B550A0 72a537b8 262160
Lists the individual object sizes within such objects.
Filter it again,!dumpheap-min 85000-mt method table Address
Adress MT Size
1984e140 72a537b8 262160
19892618 72a537b8 131088
198b2628 72a537b8 131088
198d2638 72a537b8 131088
1990f488 72a537b8 131088
1992f4a8 72a537b8 262160
1998af48 72a537b8 262160
199caf68 72a537b8 262160
19a0af78 72a537b8 131088
19a2cfb0 72a537b8 262160
19A6CFC0 72a537b8 262160
19aacfe0 72a537b8 262160
19AECFF0 72a537b8 131088
19b0f028 72a537b8 131088
19b35090 72a537b8 131088
19B550A0 72a537b8 262160
5. View the root of a large object,!gcroot 1984e140
Note:roots found on stacks could be false positives. Run "!help gcroot" for
More info.
Scan Thread 7 Osthread 13d8
Scan Thread Osthread 10e4
Scan Thread 1764 Osthread
Scan Thread Osthread 668
Scan Thread Osthread 10f8
Scan Thread Osthread 1334
Scan Thread 1244 Osthread
ESP:1C2DFB50:1C2DFB88 (Invalid object)
Esp:1c2dfc28:1c2dfbec (Invalid object)
Esp:1c2dfc2c:1c2dfbec (Invalid object)
Esp:1c2dfc64:1c2dfbec (Invalid object)
Scan Thread 1164 Osthread
Scan Thread Osthread 14f0
Scan Thread 2 Osthread A74
Scan Thread Osthread 8a0
Scan Thread Osthread 15d8
Scan Thread PNS Osthread 17f4
Scan Thread Osthread 162c
Scan Thread Osthread 120c
Scan Thread 930 Osthread
Scan Thread Osthread 15BC
Scan Thread Osthread A54
Scan Thread Osthread F8
Scan Thread Osthread 17d4
DOMAIN (01280308): HANDLE (Pinned):d 013fc:root:1206db58 (system.object[])

6. Find the corresponding code and check the problem.

WinDbg + SOS Debug w3wp process memory Crash issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.