Process CPU usage jumps to 100% without any reason?  
Author Message
Farah





PostPosted: Mon May 24 01:31:29 CDT 2004 Top

Dotnet >> Process CPU usage jumps to 100% without any reason? I am working on an application in c# that runs in the background.
All it does is monitor a value from a performance counter using a timer. It then draws these values in a chart

Now, this application works for a long time, sometimes even days. But sometimes it just freezes and the CPU usag
spikes to 100% for that process. I really don't understand why, and there seems to be no actual event that trigger
this. It looks like this problem occures more when I am using more CPU power during a long period of tim
(f.e. when compressing something). But even then, sometimes the program freezes and sometimes it keeps running
smooth at 0-2% usage..

Is there anyone that can give me an idea on how to solve this problem

I thank you for your time
Kind regards
Kevin Chabot

DotNet114  
 
 
Calvin





PostPosted: Mon May 24 01:31:29 CDT 2004 Top

Dotnet >> Process CPU usage jumps to 100% without any reason? This is a multi-part message in MIME format.

------=_NextPart_000_021B_01C4411E.1306BED0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

Kevin,

I don't have an easy solutions. But I would write a text file log and =
see what's the last place it get's to before it goes off to never never =
land.=20

-Calvin Luttrell
ProjectThunder.com



> I am working on an application in c# that runs in the background.=20
> All it does is monitor a value from a performance counter using a =
timer. It then draws these values in a chart.
>=20
> Now, this application works for a long time, sometimes even days. But =
sometimes it just freezes and the CPU usage
> spikes to 100% for that process. I really don't understand why, and =
there seems to be no actual event that triggers
> this. It looks like this problem occures more when I am using more CPU =
power during a long period of time
> (f.e. when compressing something). But even then, sometimes the =
program freezes and sometimes it keeps running=20
> smooth at 0-2% usage...
>=20
> Is there anyone that can give me an idea on how to solve this problem?
>=20

------=_NextPart_000_021B_01C4411E.1306BED0
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Kevin,</FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>I don't have an easy =
solutions. But I=20
would write a text file log and see what's the last place it get's to =
before it=20
goes off to never never land. </FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>-Calvin =
Luttrell</FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 =
size=3D2>ProjectThunder.com</FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 =
size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial=20
color=3D#000000 size=3D2>&gt; I am working on an application in c# that =
runs in the=20
background. <BR>&gt; All it does is monitor a value from a performance =
counter=20
using a timer. It then draws these values in a chart.<BR>&gt; <BR>&gt; =
Now, this=20
application works for a long time, sometimes even days. But sometimes it =
just=20
freezes and the CPU usage<BR>&gt; spikes to 100% for that process. I =
really=20
don't understand why, and there seems to be no actual event that=20
triggers<BR>&gt; this. It looks like this problem occures more when I am =
using=20
more CPU power during a long period of time<BR>&gt; (f.e. when =
compressing=20
something). But even then, sometimes the program freezes and sometimes =
it keeps=20
running <BR>&gt; smooth at 0-2% usage...<BR>&gt; <BR>&gt; Is there =
anyone that=20
can give me an idea on how to solve this problem?<BR>&gt;=20
<BR></FONT></BODY></HTML>

------=_NextPart_000_021B_01C4411E.1306BED0--

 
 
kevinchabot





PostPosted: Mon May 24 12:46:03 CDT 2004 Top

Dotnet >> Process CPU usage jumps to 100% without any reason? Hi

I've checked where the application starts to freeze
It happens right before my "Application.Doevents()" statement in my timer (100ms). After that
it keeps hanging there and CPU usage jumps to ~100%

Any ideas? :)