Performance Monitor (Perfmon) counters for IIS - 1

by rahul 1/21/2010 3:48:47 AM

If you consider troubleshooting as an art, Perfmon will be one of the brushes – almost like sable. If you master it well, you can not only tell a lot about your server’s performance, you will also be able to take a lot of actions pro-actively even before anything breaks down.

In this post, let me quickly show how you can create various counters and set it up on your IIS/SharePoint Servers.

    Click Start –> Run –> Perfmon (Click Ok)
    Right click on Counter Logs under Performance Logs and Alerts and select New Log Settings.

image

    Type a name and click Ok.

image

    You will see the following dialog…

image

    Click on Add Objects…

image

    Select all the counters that you want… (if you are not aware of which all counters should you baseline at the minimum, read on…), click Add and Close.
    Set the Interval to 1 minute

image

    If you wish to change the Log Files location (Current Log File Name) you will need to switch to the Log Files folder.

image

    Once done, you will see our Perfmon counter set running and collecting the data samples every 1 minute. Keep in mind that you should not ALWAYS have 1 minute interval. In case you are working with an IIS Hang or High CPU scenario, you should add the Thread Counter as well and ensure that the interval is set to something like 10 seconds.

image
   Let it run for 8 hrs, and click Stop. You have just collected your IIS Baseline logs for that 8 hours. It is a good practice to have an archival policy of this Perfmon. Something like a one day Perfmon data collection every Monday, or so on.
    You may be having a plenty of servers where you want to repeat the same exercise of setting up the perfmon counters. Use Save Settings As in the image above and save it as an htm file.
    Now open this htm file in Notepad and you will be able to see something like this…

image      Let’s say you want the same counters on any other machine called “MOSS2”, you may need to replace the highlighted sections above. So, location may remain the same… and \\MOSS should be changed to \\MOSS2 and so on. Once done with changing the server and location names, save this file and switch to MOSS2
    Right click on Counter Logs and select New Log Settings From

image

    Select the htm file that you have just modified, and you will get another prompt like this… click OK and you are done. Right click on this counter set and select Start.

image

    I have attached this baseline counter, in case you are feeling a bit lazy Happy

Download

Hope this helps,
Rahul


Quote of the day:
But in this world nothing can be said to be certain, except death and taxes. - Benjamin Franklin


blog comments powered by Disqus

Search


Tags



Categories

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0