Tess Debug 系列第二篇,Hang 除錯實戰。問題+結果結構,機器差異不影響原理掌握。
https://localhost/BuggyBits/FeaturedProducts.aspx (約 5 秒呈現)InternetConnections.reg 修改登錄允許更多並發連線| 瀏覽器 | 回應時間 |
|---|---|
| 1 | 5.0s |
| 2 | 9.1s |
| 3 | 12.57s |
| 4 | 16.07s |
| 5 | 18.61s |
每請求遞增 ~5 秒,CPU 使用率極低 (0-5%)。
adplus -hang -pn w3wp.exe -quiet (暫不按 Enter)tinyget -srv:localhost -uri:/BuggyBits/FeaturedProducts.aspx -threads:30 -loop:50 產生併發-hang:立即產生 Dump (按 Enter 那一刻)-crash:等待程式滿足崩潰條件才產生Windbg 載入 Dump → .load sos → !threads 檢視所有 Managed Thread → 找出阻塞 Thread → !clrstack 定位呼叫堆疊 → 識別鎖/資源競爭程式碼。