M
Mash
I'm a software developer and work on an image processing application.
During long term tests my app is running slowly and causing problems.
I ran Windows Performance Monitor and found that my application runs
using about 65% of the processor.
Right before the problem occurs I see the Total % Processor Time spike
to 100%. It seems what is happening is the process svchost2 briefly
spikes up to about 38% Processor time which causes the total processor
time to be 100%. At this point my application slows down and an error
occurs.
Svchost#2 normally runs below 1% Processor time.
At about the same time at which svchost#2 Processor usage spikes the
Page Faults/sec counter for the Memory object increases from an
average of around 700 up to around 3100.
One more interesting note is that on failure my application writes
error information to log files, so when the failure occurs I'll see IO
counters for my process increase. At about the same time a process
called dfrgntfs starts and takes about 22% Processor Time. So it seems
once I write to disk Windows automatically starts a defrag?
The PC I'm using is a Dell Optiplex GX270 running WinXP SP2. It has a
P4 2.79GHz and 1GB RAM. It has a 15GB hard drive with about 2GB free.
I ran an analysis on the hard drive and a defrag was recommended. It
is defragging now so I haven't yet run another test. The thing I don't
understand is why svchost#2 spikes it's %Processor Time suddenly.
Would the fact that a defrag is needed cause svchost#2 to spike like
that?
Thanks
During long term tests my app is running slowly and causing problems.
I ran Windows Performance Monitor and found that my application runs
using about 65% of the processor.
Right before the problem occurs I see the Total % Processor Time spike
to 100%. It seems what is happening is the process svchost2 briefly
spikes up to about 38% Processor time which causes the total processor
time to be 100%. At this point my application slows down and an error
occurs.
Svchost#2 normally runs below 1% Processor time.
At about the same time at which svchost#2 Processor usage spikes the
Page Faults/sec counter for the Memory object increases from an
average of around 700 up to around 3100.
One more interesting note is that on failure my application writes
error information to log files, so when the failure occurs I'll see IO
counters for my process increase. At about the same time a process
called dfrgntfs starts and takes about 22% Processor Time. So it seems
once I write to disk Windows automatically starts a defrag?
The PC I'm using is a Dell Optiplex GX270 running WinXP SP2. It has a
P4 2.79GHz and 1GB RAM. It has a 15GB hard drive with about 2GB free.
I ran an analysis on the hard drive and a defrag was recommended. It
is defragging now so I haven't yet run another test. The thing I don't
understand is why svchost#2 spikes it's %Processor Time suddenly.
Would the fact that a defrag is needed cause svchost#2 to spike like
that?
Thanks