Previously, I’ve been in control of the environment that I have been monitoring, so I was able to integrate that performance monitoring into PolyMon.  Now that I have a slightly different scenario, I’ve had to modify my performance monitoring strategy.

I’ve mainly been concerned about general server performance, as well as IIS and SQL performance (Basic, IIS, SQL 2005, IIS and SQL 2005), so I’ve been using counter sets that mirror that.

Then I wrapped a couple of calls to logman.exe, which is the command line interface to PerfMon counters.

To create the counter, I used

logman create counter BlackBox -v mmddhhmm -cf Counters.txt -si 00:10 -f bincirc -o “c:\Perflogs\Blackbox_%computername%” -max 250

which creates a counter named “BlackBox” (like a flight recorder).

The command also:

  • reads in the counters from a text file (see my examples above). 
  • sets the sample interval to be every 10 minutes (“-si”).
  • sets the log file is a binary circular file (set by the ‘”-f”), which would be a maximum of 250 MB (set by “–max”)
  • sets the log file location and name (using the computer name environmental variable to append the computer name to the log file) and the “-v” option also adds the month, day, hour, and minute of the start of the log to the file name.

After creating the counter, I used

to start the capture of the counter information.

Finally, I have another command to stop the capture, so when there is an issue or after a specified period of monitoring, I can grab the log file and feed it to PAL or load it in PerfMon (on Server 2008 or greater – as PerfMon got some nice feature bumps with the more recent releases) and analyze it there or export it to a CSV file to slice into it with Excel.

Have Fun!

Resources:

Runas Radio Shows –

Technet Article – Taking Your Server’s Pulse

PAL – Performance Analysis Of Logs



Leave a Comment

You must be logged in to post a comment.

blank