Minimum, Maximum, Average values of PerfMon.

F

Frank Rizzo

I am trying to do some monitoring of some PerfMon counters and have a
question.

Does PerfMon figure out the Minimum, Maximum, Average values for each
counter? Or are those values part of the performance monitoring
subsystem and can be accessed via the
System.Diagnostics.PerformanceCounter object. I haven't found an
obvious way to get to the Minimum, Maximum, Average values for a counter.

Thanks.
 
J

Jeffrey Tan[MSFT]

Hi Shailesh,

I will spend some time on this issue and get back to you ASAP, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

Hi Shailesh,

Regarding on the performance counters of windows system, a given
performance counter itself doesn't provide any of the following values:

"average"
"maximum"
"minimum"

performance counter itself only keep the latest value updated from the
source application(such as windows system , SQL server or other
applications that has registered certain counters).

For the above statistic values, they're calculated by the perfmon.exe
program, and the calculation is on-deman(no history record stored in any
persistent log file). That means, whenever you launch the perfmon.exe
program, it start calculating the above statistic values for every
counters(that is listed) and after you close the perfmon and restart it
again, the calculation start again and no previous record are persistent.

Therefore, for your scenario here, if you want to get such statistic value
for certain performance counters in your own application, you need to do it
programmaically through your own code as below:

**In your application, use the performance counter class/methods to get a
set of the sample values (according to the performance c ounter's frequency
and the accuracy you need) and you need to keep these sample values yourself

**Calculate the statistic values(average, max, min values) based on the set
of sample values obtained above

Hope this helps. If you have any further question on this, please feel free
to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


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