Thursday, July 7, 2016

PerfMon # 3: Configure PerfMon from GUI in local computer;

Okay,, in less that 12 hours I wrote the second installment on configuring PerfMon using CLI now I am writing to do the same from GUI.


If you go to RUN and type 'perfmon', "Performance Monitor" graphical user interface shoots up. Inside "Data Collector Sets" and then "User Defined", you will see a counter name "NOC.PERF.2SEC.




In this post;


1. We will now create the same thing using GUI.
2. We will go into the properties of that counter and explain it's feature and variables in detail.


Just to tell you, please don't freak out by that name NOC.PERF.2SEC. It can be anything. In this NOC is Network Operation Center, PERF is performance counter and 2 Sec is the sample interval of counter.

Let's begin;

1. Go to Run and type PerfMon.
2. Expand "Data Collector Sets".
3. Right click on "User Defined".
4. Click on "New" and then "Data Collector Sets"



5. Give it a name. We will name it as "NOC.PERF.2SEC". The radio button "Create from template (Recommended)" is selected.

6. On next screen select "System Performance" and click on "Next".

7. On next window it is asking you give the location where you want to save the log file.

8. The next page is "Save & Close" then "Finish". It was simple. Is not it ?

No it is not. Because lot more is still yet to be done.



 

Friday, July 1, 2016

PerfMon # 2: Configure PerfMon from Command Prompt (CLI) in local computer;


When it comes to configure PerfMon, you need know the counters & objects.


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 ..