Microsoft MVP성태의 닷넷 이야기
덤프 파일 분석 관련해서 문의 드려요. [링크 복사], [링크+제목 복사]
조회: 8624
글쓴 사람
신동열 (dongyoul.shin at gmail.com)
홈페이지
첨부 파일
 

저희가 개발해서 사용하던 프로그램이 일정 시점부터 프로그램 사용중 Hang이 걸려서 먹통이 되는 현상이 발생하였습니다.
원인은 어떤 프로그램 설치(자산관리 프로그램)후 부터 이런 현상이 발생했는데 해당 프로그램을 제거하면 정상적으로 동작을 합니다.
해서 프로그램이 먹통이된 시점에 덤프를 뜨서 DebugDialg를 이용해서 확인을 했는데 분석 요약 정보에 다음과 같은 설명이 나왔습니다.
개발 하면서 Debug은 해봤지만 덤프 파일로 디버깅은 해본적이 없어서 아래 내용으로 어떻게 분석을 시작해야할지 잘 몰라서 질문을 드립니다.

0번 쓰레드가 블럭되어서 대기중이라는 말로 이해를 했구요. 이 0번 쓰레드는 CallStack을 확인해보면 주 스레드 인걸로 보입니다.
때문에 0번 스레드가 blocked 된 상태라서 프로그램이 먹통이 된거 같은데 제가 맞게 이해를 한건가요?


 
The following threads in ERP.DMP are waiting in a WaitOne
( 0 )
4.76% of threads blocked (1 threads)

  
그리고 Top 5 Threads by CPU time에 대한 정보가 다음과 같이 보이구요.

Note - Times include both user mode and kernel mode for each thread
Thread ID: 0 Total CPU Time: 00:01:04.708 Entry Point for Thread: IHKorERP+3f4e
Thread ID: 8 Total CPU Time: 00:00:01.122 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 5 Total CPU Time: 00:00:00.607 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 12 Total CPU Time: 00:00:00.546 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 14 Total CPU Time: 00:00:00.405 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc



.Net Analysis Report


CLR Information


 CLR version = 2.0.50727.8784
 Microsoft.Diagnostics.Runtime version = 0.9.2.0


.NET Threads Summary

Total Threads: 4
Running Threads: 0
Idle Threads: 4
Max Threads: 1000
Min Threads: 4

Debugger_Thread_ID |Managed Thread ID | OS Thread ID | Thread Object | GC Mode | Domain | Lock Count | Apt | Exception
        0 1     4732 2b8660 Preemptive 2b4120 0 STA
        2 2     5600 2c4300 Preemptive 2b4120 0 MTA (Finalizer)
        5 3     2936 2ed3d0 Preemptive 2b4120 0 STA
        7 5     3024 9324988 Preemptive 2b4120 0 MTA
        8 6     2408 932f488 Preemptive 2b4120 0 MTA (Threadpool Worker)
        11 9     2056 93c3288 Preemptive 2b4120 0 MTA
        12 10     4952 93c9888 Preemptive 2b4120 0 MTA (Threadpool Worker)
        13 11     4284 93ddd10 Preemptive 2b4120 0 MTA (Threadpool Completion Port)
                           13     93ee380 Preemptive 2b4120 0
        14 8     5484 9428b50 Preemptive 2b4120 0 MTA (Threadpool Worker)
                           12     125af2d8 Preemptive 2b4120 0
                           7     125afaa8 Preemptive 2b4120 0
        18 4     6084 125af6c0 Preemptive 2b4120 0 MTA (Threadpool Worker)






Thread 0 - System ID 4732



Entry point IHKorERP+3f4e
Create time 2018-07-09 오전 7:39:14
Time spent in user mode 0 Days 00:00:37.143
Time spent in kernel mode 0 Days 00:00:27.565


This thread is waiting in a WaitOne





.NET Call Stack




[[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(Microsoft.Win32.SafeHandles.SafeWaitHandle, UInt32, Boolean, Boolean)
mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int64, Boolean)
mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)
System_Windows_Forms_ni!System.Windows.Forms.Control.WaitForWaitHandle(System.Threading.WaitHandle)
System_Windows_Forms_ni!System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
System_Windows_Forms_ni!System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
System_Windows_Forms_ni!System.Windows.Forms.WindowsFormsSynchronizationContext.Send(System.Threading.SendOrPostCallback, System.Object)
System_ni!Microsoft.Win32.SystemEvents+SystemEventInvokeInfo.Invoke(Boolean, System.Object[])
System_ni!Microsoft.Win32.SystemEvents.RaiseEvent(Boolean, System.Object, System.Object[])
System_ni!Microsoft.Win32.SystemEvents.OnUserPreferenceChanged(Int32, IntPtr, IntPtr)
System_ni!Microsoft.Win32.SystemEvents.WindowProc(IntPtr, Int32, IntPtr, IntPtr)
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)
SiS.Dev.Main.ClientManager.WindowApplicationStart()
ERPExecute.ERPAppModule.Main(System.String[])
[[GCFrame]]








[최초 등록일: ]
[최종 수정일: 8/8/2018]


비밀번호

댓글 작성자
 



2018-08-08 05시07분
네, 현상으로 봐서는 맞습니다. Wait... 메서드가 호출되었으니 기다리고 있는 중입니다.
정성태

1  2  3  4  5  6  7  8  9  [10]  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
5699갓경섭7/29/20224445C# 프로그램 느려짐 현상 [2]
5698kss7/29/20225212ValueTask 질문입니다. [5]
5697스팸7/28/20225201윈도우서버 Port 고갈문제 (Event ID 4227, 4231) [3]파일 다운로드1
5696유석7/27/20225489닷넷 4.X 와 닷넷 6.0 버전 차이 [6]
5695초보코더7/26/20224852[WCF] EndpointNotFoundException 기본 연결이 닫혔습니다. 원격 서버에 연결할 수 없습니다. [1]
5693차가워7/22/20224324socket 종료 시 reveive수신부에서 에러 나는거 처리 문의 [5]
5692도비7/21/20223938Ubuntu LVM 확장 관련 [1]파일 다운로드1
5691따봉이7/21/20224624Task 비동기 UI 크로스 쓰레딩 Err 관련 [1]
5690훈이7/20/20223865wpf질문입니다 [2]
5689질문7/20/20223657비동기 함수를 사용하는 방법에 대한 질문입니다 [1]
5688김정현7/11/20223748소스 디버깅(F5)시 프로그램 켜지지 않고 디버깅 가능한 상태 [1]
5687규철7/6/20223867개발업무 문서 관리 방법 문의 [3]
5686권용완7/5/20223836Linq Entites 에서 string[]에 담긴 데이터를 제외하는 방법 문의 [3]
5685차가워7/4/20224006메모리 선택 문의 [1]
5683김민혁7/1/20224550HttpWebRequest POST 전송 관련해서 질문 드립니다. [4]파일 다운로드1
5682김기헌6/20/20223991안녕하세요 서로 다른 스레드에서 동일 인스턴스의 메소드를 호출할때 질문드립니다 [2]
5681미래는투...6/19/20223875VC++ 빌드 관련 문의 (h파일이 바뀌었는데 컴파일을 꼭 하지 않아도 되나요?) [1]
5680Syong6/12/20224879EXE파일에 속성값 추가하는 방법이 있나요? [2]파일 다운로드1
5679차가워6/8/20224008tcpip socket 여러 랜카드 사용 시 연결 문의 [1]
5678차가워6/7/20223920원자적 실행 문의 [3]
5677장성욱6/7/20223945블루투스 포트와 시리얼포트 연결시 에러 [2]
5675차가워5/29/20224626윈도우설정 프로세스사용계획 옵션과 c# 스레드 [1]
5674민우5/29/20224498C++ 의 RTTI, Reflection 으로 객체 멤버변수, 멤버함수 목록 추출 문의 [2]
5673조은현5/25/20225436안녕하세요 선생님! c#에서 TCP/IP의 keep alive 기능의 사용법에 대해서 질문드리고 싶어요! [2]파일 다운로드2
5672game...5/23/20225332안녕하세요 GC를 일시적으로 중단시키는 방법이 있을까요? [5]
5671한예지 donator5/20/20224940델리게이트와 함수포인터 선언 시, 차이점 질문 있습니다. [3]
1  2  3  4  5  6  7  8  9  [10]  11  12  13  14  15  ...