IIS7 Profiling


Is there a way to profile IIS7? (freeware?)

  • Number of connections
  • Bandwidth usage
  • Errors (Event Viewer?)

thx, Lieven Cardoen

ps: Something similar to mssqlserver profiling

Best Solution

There's nothing quite like MSSQL's profiler, but a set of tools:

  • Perfmon will show you the # of current connections per website. Perfmon.msc, web service, current connections, select website, click add. Don't like the interactive nature of perfmon? No problem, use logman.exe, a nice CLI for perfmon.

  • Bandwidth usage you can get from your log files if you enable bytes sent & bytes received in your iis log files. This is also available via performance counters - web service, bytes sent/received/sec. I think the two complement each other fairly well.

  • IIS7 has a new feature called Failed Request Tracing. You can tell it to log on all 500's,or any .aspx page that takes 15 seconds to run, or based on event severity. It saves all of this information in an XML file for you under \inetpub so it's easily parseable, and also gives you a nice XSLT to view it in your browser and drill down if you like.