473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 9005
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like...
2
by: Hennie de Nooijer | last post by:
I have a problem (who not?) with a function which i'm using in a view. This function is a function which calculates a integer value of a date. For example: '12/31/2004 00:00:00" becomes 20041231....
2
by: Hennie de Nooijer | last post by:
Because of an error in google or underlying site i can reply on my own issue. Therefore i copied the former entered message in this message....
4
by: Scott | last post by:
In order to give a meaning average value and minimum and maximum values, I would like to have a formula for a group of data after taking out those extremes. Can someone share your way to...
3
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors??...
2
by: Pugi! | last post by:
hi, I am using this code for checking wether a value (form input) is an integer and wether it is smaller than a given maximum and greater then a given minimum value: function...
7
by: junky_fellow | last post by:
Guys, Does the standard allow to an implementation to chose any maximum and minimum value for an object of type int ? For eg. Can an implementation with sizeof(int)=4, chose to have value of...
3
by: manxie | last post by:
Dear All Readers, I'm supposed to create a program with a switch and using voids to execute number of codes, that includes finding sum, average, maximum, and minimum, please read my code:...
11
by: zj262144 | last post by:
Hi, I'm a C beginner. I want to write a C. The pseudocodes are like this: User enters some numbers (use -1 to end) The compiler find and delete the maximum and minimum numbers Then average...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.