Sudden increase in processor load

G

Guest

I have a problem with processor load in the enviroment where I'm running the
firts installation of my new application.

My program is running on a Pentium 4 3.0 GHz, wtih 1 GB DDR SDRAM and 80 GB
harddrive. The operating system is Win XP professional and I have no other
programs installed on this box.

My program is communicating with other devices using two network cards. The
communication is time critical in a sence that the messages from one devices
are used in the treatement of incoming messages from other devices. If my
application has not received the messages in the correct order they are sent
or not at all there is an error.

My application completes about 15000 communication cycles (between the
devices) every day and in about 5-10 thare are problems. The problem is that
for some reason the receiving of messages is halted for a period of about 1
second and this cause problems in my app.

I've been using a performance counter measuring the total % Processor time
for my processor twise every second and I can see that the % processor time
is steadily running at about 20-50 % during most of the day but for some
reason it sometimes (about 10 samples) peak up to 100 %. These peaks seems to
cause the problem where I don't receive any messages. I can't explain these
peaks with anything that is going on in my application.

What could be causing these sudden peaks in processor load?

Could it help to increase the priority of my process? (Using
Process.PriorityClass) My application is the olny one running on this
computer.

Any ideas how to debug this. The computer is accessed remotely using Windows
Remote Desktop. And I cannot be connected to it while it's running.

Any suggestions would be appreciated

Best Regards

Henrik
 
P

Peter Huang [MSFT]

Hi Henrik,

For this issue, we can consider it as a Busy Hang which is 100% CPU issue.
Please take a look at the link below.(Hang section)
Commonly it is caused by a loop.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs600/htm
l/debugging.asp

Here are some KBs for your reference.

258833 How To Troubleshoot High CPU Utilization of an MTS or COM+ Process
http://support.microsoft.com/default.aspx?scid=kb;EN-US;258833

919791 How to use the Debug Diagnostics Tool to troubleshoot high CPU usage
by a process in IIS
http://support.microsoft.com/default.aspx?scid=kb;EN-US;919791

Also with a problem as complex as this may need to create dump and do low
level debugging and dump analysis. If the issue is urgent, you may want to
work with Microsoft Customer Service and Support (CSS) for a faster
resolution. Once you open a Support incident with Microsoft CSS, a
dedicated Support Professional can work with you in a more efficient manner.
http://support.microsoft.com

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top