Wednesday, March 07, 2007

HOWTO - Configure Orphaning on IIS6

Question:

Hi. We are getting an error on the production server: A process serving application pool (pool name) was orphaned, but the specified orphan action (some action) could not be executed.

I remember someone added something to get a memory dump on application hangs there, but the file in (some action) is no longer there. How do I remove the action associated with it?

Answer:

Why, you simply remove that something that someone added which is no longer there, of course... :-P

Joking aside, the relevant metabase properties in your situation are:

How to find all this? Search with key terms like:

OrphanWorkerProcess site:microsoft.com

At this point, you have two basic choices to address the error:

  1. Turn off Orphaning. This stops IIS from orphaning, which also prevents it from running the failing action
  2. Delete the OrphanActionEXE and OrphanActionParams properties. IIS continues to orphan worker processes but stops running the custom action

Personally, I recommend #1 because Orphaning helps debugging when monitored... and hopefully you find the issues in test environments and do not intend to debug production servers

Now, suppose you want to delete the above Orphaning properties. How to find where they are set, what their current values are, and how to delete them? Use your friend ADSUTIL.VBS. For example, the following illustrate sample management of worker process Orphaning.

PUSHD %SYSTEMDRIVE%\Inetpub\Adminscripts

REM Identify all AppPools that set OrphanWorkerProcess
CSCRIPT ADSUTIL.VBS FIND OrphanWorkerProcess

REM Retrieve the value of OrphanWorkerProcess at the global level
CSCRIPT ADSUTIL.VBS GET W3SVC/AppPools/OrphanWorkerProcess

REM Delete the OrphanWorkerProcess property for the DefaultAppPool
CSCRIPT ADSUTIL.VBS DELETE W3SVC/AppPools/DefaultAppPool/OrphanWorkerProcess
POPD

//David

6 comments:

Anonymous said...

did u work @ NCC in 2001? email me: swtdiva72@sbcglobal.net

gurgaonindustry said...

Schools In Gurgaon | Hotels In Gurgaon | Hospitals in Gurgaon | Jewelers In Gurgaon


i like your blog

Anonymous said...

nice blog.
-----------
dvdshop88
Lost DVD 1-6
Sex and the City DVD 1-6
Curb Your Enthusiasm DVD 1-7
Bones DVD 1-4
House MD DVD 1-6
Zumba DVD Boxset
Two and a Half Men DVD 1-7
Your Baby Can Read DVD
MI5 DVD 1-8
Walt Disney 172 Discs DVD
Grey's Anatomy Seasons DVD 1-6
One Tree Hill DVD 1-7
Desperate Housewives DVD 1-6
Doctor Who DVD 1-5

Unknown said...

If you are determined enough and really, truly want to own a Coach Outlet , then you are just steps away from having what it is you want. The first step to getting discounted Coach Madison it to go online. The second step would be to look for sites that offer Coach Hamptons that are in your shopping budget. If you don't know how to do that, then I can help you with that, also. I know of a great place that offers Coach Wristlet , shoes and accessories for not just a few dollars less than retail, but hundreds less.



Featuring Breitling movement with a power reserve system of 42 hours, Chrono Superocean is measured at a diameter of 44 millimeters, a thickness of 17 millimeters and a weight of 120 grams. As to the case, there are some options including stainless steel, gold, yellow, white or rose 18kt. The retail prices of Superocean vary depending on the version Chronomat B01 , ranging from $9,000 to over $18,000 for tailor made models with diamonds.

Cheap Wildcard SSL said...

This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you. You definitely put a new spin on a subject that's been written about for years. Great stuff, just great!

ice maker said...


Good day! Do you use Twitter? I'd like to follow you if that would be okay. I'm definitely enjoying your blog and look forward to new posts.