Re: Diagnosing Application Hang...
- From: C Malone <sitazen@xxxxxxxxxxx>
- Date: Sat, 02 Dec 2006 02:03:40 -0600
The Manage Stack Explorer works nice
http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSE
Loy wrote:
Check the following:.
http://www.csharphelp.com/archives4/archive622.html
In general your friend here is ADPlus.vbs, windbg.exe + sos.dll (from
Microsoft
http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx ,
http://www.microsoft.com/whdc/devtools/debugging/default.mspx )
It will requires time investment in learning - but is a great thing to
add to your knowledge toolbox
Loy
Simon Verona wrote:I have a problem with an application which randomly hangs on site.
The symptoms are that the user will click a button - which normally would
open a new form (which inevitably will create a socket connection back to a
server using remoting) - but just hangs. Sometimes the application will
close itself (ie disappear without any errors), other times it needs to be
manually stopped.
Looking at the event log, I see in the application log the record of the
application hang (which I think is written up when you say
Send/Don't send information to microsoft?). This doesn't appear to
give too much information at all. However, looking at the system log,
I *always* see the WMI Performance Adaptor entering the "stopped" state at
*exactly* the same time as the application hang is recorded in the
application event log. Subsequently (5 seconds or so later) the WMI
Performance adaptor restarts up.
I've read that RPC based applications will hang if the WMI performance
adaptor isn't running, so I'm guessing that this is the problem. I'm
presuming that something in my application is causing the issue - but I
don't know what or even where to start looking.
The only thing that may be a problem is that the form that is being created
is often running on a seperate thread to the main form. (this is because the
form is created in an object that is itself running on a seperate thread). I
don't see that this ought to be a problem, but in case it is, the forms are
normally created using a public shared method in the class eg :
Public Shared Function DisplayJob(JobNo as String)
dim Cls as new DisplayJobClass
Cls.JobNo=JobNo
dim t as new threading.thread(address of cls.Show)
t.start
end Function
public class DisplayJobClass
Public JobNo as string
Public sub Show
dim frm as new frmDisplayJob(JobNo)
frm.showdialog
end sub
Anybody any pointers as to how I can trace the problem and solve it ??
Perhaps some monitoring tools that I can run ??
Many thanks in advance
Simon Verona
- Prev by Date: Performance Counters
- Next by Date: Re: C# Struct vs Class
- Previous by thread: Performance Counters
- Next by thread: Re: C# vs C
- Index(es):
Loading