469,332 Members | 6,650 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

Minimum, Maximum, Average values of PerfMon.

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.
Aug 10 '07 #1
3 8648
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 13 '07 #2
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.


Aug 15 '07 #3
Thank you. That's what I thought as well.

Steven Cheng[MSFT] wrote:
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.

Aug 15 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Lobang Trader | last post: by
7 posts views Thread by junky_fellow | last post: by
3 posts views Thread by manxie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.