Show IIS process information

by Mads Kristensen 13. November 2007 01:28

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

Tags: ,

ASP.NET

Comments

11/13/2007 2:37:01 AM #

Josh Stodola

Three cheers for Scott Mitchell!

Josh Stodola United States |

11/13/2007 3:29:17 AM #

Scott Stocker

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.

Scott Stocker United States |

11/14/2007 8:33:55 AM #

James Skemp

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 ...

James Skemp United States |

11/19/2007 3:57:32 AM #

trackback

Trackback from Bite my bytes

Links of the week #11 (week 46/2007)

Bite my bytes |

11/28/2007 3:50:24 AM #

Chris

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

Chris United States |

11/28/2007 12:37:48 PM #

gar

www.google.com dsfsdfsdf

gar United States |

11/28/2007 2:44:38 PM #

Chris Blankenship

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

Chris Blankenship United States |

Comments are closed

About the slave

Mads Kristensen Mads Kristensen
Web developer at ZYB and founder of BlogEngine.NET. More...

LinkedIn ZYB Facebook Last.fm Twitter View Mads Kristensen's profile on Technorati

The Lounge

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008