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:
- OrphanActionEXE - Command to run on orphaning
- OrphanActionParams - Parameters to the orphan action
- OrphanWorkerProcess - Whether to orphan a worker process instead of recycling it
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:
- Turn off Orphaning. This stops IIS from orphaning, which also prevents it from running the failing action
- 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
5 comments:
did u work @ NCC in 2001? email me: swtdiva72@sbcglobal.net
Schools In Gurgaon | Hotels In Gurgaon | Hospitals in Gurgaon | Jewelers In Gurgaon
i like your blog
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
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!
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.
Post a Comment