Microsoft MVP성태의 닷넷 이야기
덤프 파일 분석 관련해서 문의 드려요. [링크 복사], [링크+제목 복사],
조회: 16176
글쓴 사람
신동열 (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)
5968orion4/30/2025209winform DataSet.xsd의 암호화 된 ConnectionString 사용 질문 [1]
5966GM B4/30/2025226C#과 python 연동 질문 [1]
5962SunN...4/21/2025540Contextmenu margin 조절 [1]파일 다운로드2
5961GM B4/10/2025942winform => wpf 마이그레이션 방법 질문 [4]파일 다운로드1
5960Kim ...4/9/20251193안녕하세요.. 혹 AI & C# 에 대해서도 다루시나요? [1]
5959vict...2/10/20251887비주얼 스투디오 CLR 코드 탑색 질문입니다. [1]
5958Supe...1/18/20252873C#으로 DLL을 만들때 WebVeiw2을 이용하여 Vb6에서 사용할수 있는지 문의드립니다. [2]
5956fc1/11/20252873한국투자증권 KIS Developers OpenAPI의 C# 래퍼 버전 - eFriendOpenAPI NuGet 패키지 [1]
5955tree...11/8/20244510C#12 책 179 페이지 문의 사항 [2]
5954SunN...10/10/20244979textbox에서 글자입력후 textBox1_KeyUp함수에서listBox1_SelectedIndexChanged 강제호출방법 [1]
5953Roya10/4/20244959c# com host dll을 c++에서 사용할 때, sdk 관련 runtime 을 설치 안하고 제공할수 있을까요?? [1]
5952우광현9/5/20246077서버용 소켓 포트 동적포트 적용시 클라이언트가 호출하는 방법? [2]
5951Kun ...8/21/20245685c++에서 복합데이터 Struct를 .NET Framework에서 구현할 수 있는 방법이 있을까요? [2]
5950SunN...8/18/20246247정석대로 한다면 response.Close() 해야되는지요? [4]
5949SunN...8/16/20246346SqlConnection Open()에서 에러가나면 Close()하는 시점 [3]
5948SunN...8/14/20246215WebRequestMethods.Ftp.MakeDirectory 해제 [3]
5947Roya8/7/20246987c# dll을 cpp lib에서 사용을 할려고 하는데요. CoCreateInstance 에서 지정된 파일을 찾을수 없다고 나오는대요. [4]
5946SunN...8/5/20247094TaskDefinition 에서 사용저가로그온상관없이실행 [3]파일 다운로드1
5945SunN...8/3/20246969윈도우 작업스케줄러 [1]
5944roya8/1/20246912C# dll을 C++ 프로젝트에서 사용을 하고 싶은데, 레지스트리 등록 없이 가능한걸까요?? [2]
5943SunN...8/1/20246787윈도우C#에서 리눅스FTP로 업로드 및 리눅스에 폴더생성(WindowsOS에서C#으로) [3]
5942vict...7/24/20246810dll 을 c#에서 쓰고 싶습니다 [1]
5941vict...7/17/20248324DependencyObject와 같은 스레드에서 DependencySource를 만들어야 합니다. 오류 [2]
5940ckm7/16/20248728선생님 안녕하세요 async await 교착 관련 질문입니다 [1]
5939괴물신인7/9/20248422템플릿 대체할수있는방법이 있을까요? [6]
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...