What is PerfMon Counters?
This is what MSDN says:
Counters are used to provide information as to how well the operating system or an application, service, or driver is performing. The counter data can help determine system bottlenecks and fine-tune system and application performance. The operating system, network, and devices provide counter data that an application can consume to provide users with a graphical view of how well the system is performing.
This is what I say:
- To monitor an operating system’s or any application’s performance we need to monitor its resource utilization. Resource as memory, processor time, disk utilization etc.
- There can be various counters available depending on the services that run on your computer or the application or Server Roles you have installed.
- Depending on your knowledge and requirement you will choose them to target or isolate the issue.
In this post I will tell you the basic 10 counters to monitor a server performance. As a SET-PERF engineer these are the ones that you will use most.
Following is the list of these 10 counters;
1. MEMORY
2. PAGING FILE
3. Cache
4. PROCESS
5. PROCESSOR
6. LOGICAL DISK
7. PHYSICAL DISK
8. NETWORK INTERFACE
9. SERVER
10. SYSTEM
Note: I will explain each one of this counters in detail during our discussion of Analyzing PerfMon.
What is PerfMon Counter Objects?
This is what TechNet says:
Performance objects are built into the operating system, typically corresponding to the major hardware components such as memory, processors, and so on. Other programs might install their own performance objects. For example, services such as Windows Internet Name Service (WINS) or server programs such as Microsoft Exchange provide performance objects, and performance graphs and logs can monitor these objects.
Each performance object provides performance counters that represent data on specific aspects of a system or service. For example, the Pages/sec counter provided by the Memory object tracks the rate of memory paging.
This is what I say: Exactly the same
Although your system might typically make available many more objects, following are the most frequently used objects:
• Cache
• Memory
• Objects
• Paging File
• PhysicalDisk
• Process
• Processor
• Server
• System
• Thread
So now you understand, objects are subdivision of a counter. One very famous counter is processor. Now inside that total processor counter you may want to see how much is "% idle Time" or "% Interrupt Time" is. You may want to see in total "% Processor Time" how much consumed by "% User Mode" or "% Kernel Mode".
This may sound little weird if you are a first timer. If so, don't wary while analyzing I will explain them all.
Configure PerfMon from command line in local computer;
This is the easy way, trust me.
1. Launch command prompt as administrator.
2. Copy & paste following command and hit 'enter'.
Logman.exe create counter NOC.PERF.2SEC -o "C:\PRMT\Logs\PerfMon\NOC.PERF.2SEC.blg" -f bincirc -v mmddhhmm -max 500 -si 00:00:02 -c "\Memory\*" "\Cache\*" "\Paging File(*)\*" "\LogicalDisk(*)\*" "\PhysicalDisk(*)\*" "\Processor(*)\*" "\Process(*)\*" "\Network Interface(*)\*" "\Server\*" "\System\*"
3. In next line enter following command;
Logman.exe start NOC.PERF.2SEC
4. After both the commands completes successfully, it would look like this:
5. Wala !! you have configured PerfMon from CLI.
In next post we will do the same from GUI.
I know I need to explain the command to you. I will do that after we configure exactly the same from GUI.
Untill then..... cheers ..
No comments:
Post a Comment