we are adding multiple Application Pools to our IIS, each of them is getting one Application and a virtual directory. The deployment is done via Powershell scripts. The nasty thing about this is, when adding a virtual directory to one Application Pool all
the other Pools are restarting. I got it when changing global config files the app pools are forced to recycle, but this should be not the problem here, right? Maybe someone had this problem with adding virtual directories, already? Or there is something i
dont understand, yet ... in any case i would appreciate help ;) If there are crucial information you need from me, ill provide them gladly.
And yes, i searched the world wide web already a lot, but really could not find anything.
thanks for your response. I´ve set the recycle event log entry generation to true on each field. Unfortunetely i cannot find the desired Event Log entry after a recycle. Where it is supposed to be? Application, System or somewhere in the "Application and
Services Logs"?
First i tried to do a manual recycle to check whether the configuration for logging was set correctly... but couldnt find anything. Any hints?
First of all, i was able to reproduce this issue by just creating a virtual directory using the IIS Manager. So its not a powershell related problem.
By using the ProcessMonitor i realized that it seems not the Application Pools are restarting but the Application itself. I was trying to monitor the w3wp Process which got a "Process Exit" Operation, once i recycled the App Pool manually. On the other side
there was no "Process Exit" Operation while creating a virtual directory, but the Application log4net files showed a "instance shutdown" message. Going back and taking a further look at the ProcessMonitor output i could find out that this Application shutdown
is always happening shortly after a "NotifyChangeDirectory":"C:\inetpub\temp\appPools" where a file seems to be created which is like "C:\inetpub\temp\appPools\[apppoolname].config".
I cannot figure out why a simple virtual directory, which has nothing to do with this application pool, is causing to consider other Application Pools. Any idea?
In addition im curious about regulary creating the file "C:\Windows\System32\intetsrv\w3wp.exe" ... is this file supposed to be recreated each few milliseconds? The steps are: QueryBasicInformation -> CloseFIle -> CreateFile -> QueryBasicInformation -> CloseFile
-> CreateFile ...." which is repeating all the time, like i said :) Or doeas the operation "CreateFile" just means to create a simple file handle?
a.pawi
10 Posts
Application Pools restarting when adding virtual directory
Oct 13, 2011 11:42 AM|LINK
Hey there,
we are adding multiple Application Pools to our IIS, each of them is getting one Application and a virtual directory. The deployment is done via Powershell scripts. The nasty thing about this is, when adding a virtual directory to one Application Pool all the other Pools are restarting. I got it when changing global config files the app pools are forced to recycle, but this should be not the problem here, right? Maybe someone had this problem with adding virtual directories, already? Or there is something i dont understand, yet ... in any case i would appreciate help ;) If there are crucial information you need from me, ill provide them gladly.
And yes, i searched the world wide web already a lot, but really could not find anything.
Greetings, Adam
virtual directory Application Pool Recycling
Leo Tang - M...
4161 Posts
Microsoft
Re: Application Pools restarting when adding virtual directory
Oct 17, 2011 07:53 AM|LINK
Hi,
To troubleshooting this issue, could you please configure your server to Logging of events when an application pool recycles?
IIS 7.0 - Application Pool Recycles - Log a event in Windows Event Log
http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-pool-recycles-log-a-event-in-windows-event-log.aspx
Feedback to us
Develop and promote your apps in Windows Store
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory
Oct 17, 2011 03:15 PM|LINK
Hi Leo,
thanks for your response. I´ve set the recycle event log entry generation to true on each field. Unfortunetely i cannot find the desired Event Log entry after a recycle. Where it is supposed to be? Application, System or somewhere in the "Application and Services Logs"?
First i tried to do a manual recycle to check whether the configuration for logging was set correctly... but couldnt find anything. Any hints?
Greetings, Adam
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory
Dec 21, 2011 12:40 PM|LINK
We really need to get this fixed. Can some one help?
HCamper
8048 Posts
Re: Application Pools restarting when adding virtual directory
Dec 21, 2011 07:24 PM|LINK
Hello,
Download and install Process Monitor http://www.iislogs.com/articles/processmonitorw3wp/
Application Pools and Processing.
Then look at Steves's guide for Audting
http://www.iislogs.com/steveschofield/detecting-permission-issues-using-auditing-and-process-monitor .
The Process Monitor should help in your problems.
Edit: The IIS Server has the status codes and errors.
Please update this thread with the results.
Martin
Community Member Award 2011
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory
Jan 13, 2012 11:25 AM|LINK
Hi Martin,
thanks for the answer and sorry for not replying, i was on holidays. Im going to check it during the next week and provide a result update.
Greetings,
Adam
kctt
777 Posts
Re: Application Pools restarting when adding virtual directory
Jan 16, 2012 03:47 AM|LINK
This is interesting.
We don't same same behavior when using IIS manager and control panel to add websites and application pools.
HCamper
8048 Posts
Re: Application Pools restarting when adding virtual directory
Jan 18, 2012 01:02 AM|LINK
Hi,
http://learn.iis.net/page.aspx/1077/powershell-scripts-for-automating-web-deploy-setup/ Web Deploy information
Martin
Community Member Award 2011
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory
Jan 19, 2012 07:59 AM|LINK
Okay, this is interesting.
First of all, i was able to reproduce this issue by just creating a virtual directory using the IIS Manager. So its not a powershell related problem.
By using the ProcessMonitor i realized that it seems not the Application Pools are restarting but the Application itself. I was trying to monitor the w3wp Process which got a "Process Exit" Operation, once i recycled the App Pool manually. On the other side there was no "Process Exit" Operation while creating a virtual directory, but the Application log4net files showed a "instance shutdown" message. Going back and taking a further look at the ProcessMonitor output i could find out that this Application shutdown is always happening shortly after a "NotifyChangeDirectory":"C:\inetpub\temp\appPools" where a file seems to be created which is like "C:\inetpub\temp\appPools\[apppoolname].config".
I cannot figure out why a simple virtual directory, which has nothing to do with this application pool, is causing to consider other Application Pools. Any idea?
In addition im curious about regulary creating the file "C:\Windows\System32\intetsrv\w3wp.exe" ... is this file supposed to be recreated each few milliseconds? The steps are: QueryBasicInformation -> CloseFIle -> CreateFile -> QueryBasicInformation -> CloseFile -> CreateFile ...." which is repeating all the time, like i said :) Or doeas the operation "CreateFile" just means to create a simple file handle?
Greetings and thanks in advance,
Adam
HCamper
8048 Posts
Re: Application Pools restarting when adding virtual directory
Jan 19, 2012 09:41 AM|LINK
Hi Adam,
Thanks for updated information process monitor is showing "interesting" information.
Just means to create a simple file handle look at log4net /
Regards,
Martin
Community Member Award 2011