Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- From: "Ollie Riches" <ollie.riches@xxxxxxxxxxxxxxxxx>
- Date: Sat, 15 Oct 2005 13:11:52 +0100
Mark,
You can use performance monitor (perf mon) in 'Administrator Tools' to get a
view out what is going in your application. It has alot of .Net related
counters that include one for monitoring memory activates.
HTH
Ollie Riches
<LordHog@xxxxxxxxxxx> wrote in message
news:1129324512.925143.325060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Nicholas,
>
> The application under normal load appears to use anywhere from 25 to
> 50 megs of memory and about ~5% CPU utilization. When the application
> peaks and holds near 100% CPU utilitization the GUI is unresponsive,
> the cursor changes to an hour-glass indicating it is awaiting for
> something to complete. If you try to move the GUI it will move, but
> application window is never redrawn. So I would guess this is the
> negative impact that you are looking for.
>
> Thanks for the information regarding the marshaler will pin the array
> down as I didn't know that. I assume that I needed to do that myself. I
> did fail to state that I am using Visual C# 2005 Express Beta. I am
> using this because I also need to use the new Serial Port class as v1.x
> didn't include it.
>
> Right now the application is running in the lab and has behaved good
> for the past three hours. I can't seem to predict what causes the spike
> as it might happen just after launching the application or five minutes
> after running it.
>
> Mark
>
.
- Follow-Ups:
- References:
- Application consumes close to 100% of CPU, how to profile and determine the cause
- From: LordHog
- Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- From: Nicholas Paldino [.NET/C# MVP]
- Application consumes close to 100% of CPU, how to profile and determine the cause
- Prev by Date: Google Side Bar - Object reference not set to an instance of an object.
- Next by Date: Re: PInvoke problem with int by reference
- Previous by thread: Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- Next by thread: Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- Index(es):
Relevant Pages
|