Microsoft MVP성태의 닷넷 이야기
덤프 파일 분석 관련해서 문의 드려요. [링크 복사], [링크+제목 복사]
조회: 8712
글쓴 사람
신동열 (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... 메서드가 호출되었으니 기다리고 있는 중입니다.
정성태

... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
4884user8/31/20179305    답변글 [답변]: UI 변경 작업 여러개를 동시에 사용하려면 어떻게 해야되나요 ??파일 다운로드1
4881kmi8/30/20179494진행속도가 중간에 더뎌지는 문제가 있는데 해결할 수 있는 방법이 있나 궁금합니다. [3]
4880김호종8/29/20179906HTTP JSON POST 관련 질문 드립니다. [1]
4879aos8/27/201710071DateTime 표시할 때 포맷 설정시 밀리초까지 포함하는 법이 궁금합니다 [1]
4878heyh...8/25/201710162프로세스의 프로세스 찾기(?) [2]
4877강준8/24/20179356SQLite journal_mode=wal 관련하여 질문드립니다. [1]
4876heyh...8/23/20179603프로세스 초기화하기 [1]
4874ho8/22/20179670파일 확장자명을 이용해 파일의 실행 프로그램의 전체 경로를 얻어 올 수 있을까요? [1]
4875ho8/23/201710635    답변글 [답변]: 파일 확장자명을 이용해 파일의 실행 프로그램의 전체 경로를 얻어 올 수 있을까요? [1]
4873kmi8/21/201711466전역 변수를 쓰지 않고 여러 군데에서 같은 변수를 공용하는 방법이 궁금합니다. [4]
4872abcd8/18/201710142프로세스를 초기화 하는 명령어도 있나요? [1]
4871kmi8/17/201711464메모리 부족으로 종료되는 현상의 여러가지 이유가 무엇인지 궁금합니다. [2]
4870heyh...8/14/201710265프로그램 실행시 중복일 때 버튼 색깔 원래대로 돌리기 [1]
4868kmi8/4/20179582string[] 에 Reverse 적용방법 질문해봅니다 [3]
4867heyh...8/4/20179073EventHandler에 관한 [1]
486610년차8/3/20179504dsoframer axframer open시 기존 오픈되어있는 엑셀을 먹어버리는 현상 [1]
4865heyh...7/31/201711057클릭원스로 배포 한 프로젝트가 끝났는지 알 수 있는 방법 [8]
4864초보자7/28/201710064DllIImport질문 드립니다. [1]
4863다연아빠7/23/201710280전역 예외처리에 대해 질문있습니다. [3]
4861라르크7/17/201715552window form 예제 따라하는 중인데 12.3 서비스 응용 프로그램에서 진행이 안됩니다. [3]파일 다운로드1
4859heyh...7/10/201710193다른 환경에서 실행하기 [1]
4858heyh...7/10/201710043Clickonce update에 관한질문입니다. [1]
4857heyh...7/7/201710670제가 여태까지 작성한 보고서입니다. [2]파일 다운로드1
4856heyh...7/6/20179387성태님 다른질문입니다. [4]
4855JP7/6/201710081Dispose 패턴 구현시 Finalize 재정의에 대한 질문드립니다. [2]
4854heyh...7/6/20179504
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...