Show IIS process information

Nov 12, 2007

Recently I needed to investigate the IIS process on a website because of strange shutdown behaviors. There are many ways to dig into the IIS process but on a hosted environment it can be a little hard since you don’t have access to the IIS.

I went on a quick search and found a nice article by Scott Mitchell about hooking into the IIS process from ASP.NET. It lists the shutdown reasons and memory consumption and other useful details about the IIS process. So I took the example by Scott and rewrote it into a simple .aspx page that can be dropped into any ASP.NET website running on the IIS.

It has no code-behind because I wanted it to be easily distributable. Remember that it only works on websites running on the IIS so you cannot run it from within the Visual Studio 2005 web server. Download it below and try it on your own website.

ProcessInfo.zip (801 bytes)

* Only $4.95/month ASP.NET & Windows 2008 + IIS 7 Hosting! FREE SQL Included

Comments (6) -

Josh Stodola
Josh Stodola United States
11/12/2007 5:37:01 PM #

Three cheers for Scott Mitchell!

Scott Stocker
Scott Stocker United States
11/12/2007 6:29:17 PM #

I get the following error in IIS 7:

Process metrics are available only when the ASP.NET process model is enabled.  When running on versions of IIS 6 or newer in worker process isolation mode, this feature is not supported.

This apparently only works when process isolation mode is disabled.

James Skemp
James Skemp United States
11/13/2007 11:33:55 PM #

Darn, running into the same issue as Scott (IIS 6, though).

I'd love to have something like this available (for those times I can't remote in), but I'd hate to sacrifice worker process isolation ...

Chris
Chris United States
11/27/2007 6:50:24 PM #

I wrote a similar page that lets an administrator see the various eventlogs on a Windows server.  This is something you would want to lock down for sure, but can come in handy when you can't get to a terminal server client...

http://www.dscoduc.com/files/eventlog.zip

gar
gar United States
11/28/2007 3:37:48 AM #

www.google.com dsfsdfsdf

Chris Blankenship
Chris Blankenship United States
11/28/2007 5:44:38 AM #

I also have a page that lets you encrypt/decrypt sections of your web.config on the fly.  Good for those who are with a ISP that doesn't allow command level access to encrypt the web.config file.

http://www.dscoduc.com/EncDecWebConfig.zip

Pingbacks and trackbacks (1)+

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.