IIS7 Profiling

Lieven Cardoen picture Lieven Cardoen · Feb 9, 2009 · Viewed 11.2k times · Source

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

Answer

JohnW picture JohnW · Feb 9, 2009

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.

http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis7/