Questions tagged [application-pool]

Application pools allow you to isolate your applications from one another, even if they are running on the same server.

An Application Pool can contain one or more applications and allows us to configure a level of isolation between different Web applications. For example, if you want to isolate all the Web applications running in the same computer, you can do this by creating a separate application pool for every Web application and placing them in their corresponding application pool. Because each application pool runs in its own worker process, errors in one application pool will not affect the applications running in other application pools.

882 questions
284
votes
15 answers

What is an IIS application pool?

What exactly is an application pool? What is its purpose?
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
152
votes
3 answers

How to disable the application pool idle time-out in IIS7?

Will it be disabled if I set the idle time-out to 0?
123
  • 1,557
  • 2
  • 9
  • 3
133
votes
1 answer

What exactly happens when I set LoadUserProfile of IIS pool?

I faced the following issue. I run the following code var binaryData = File.ReadAllBytes(pathToPfxFile); var cert = new X509Certificate2(binaryData, password); in two processes. One of the processes runs under LOCAL_SYSTEM and there this code…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
75
votes
11 answers

Restarting (Recycling) an Application Pool

How can I restart(recycle) IIS Application Pool from C# (.net 2)? Appreciate if you post sample code?
John
73
votes
4 answers

How do I set the .NET Framework Version when using New-WebAppPool?

I'm looking to see how I can use the IIS PowerShell Cmdlet New-WebAppPool to specify the version of the .NET Framework to use. Currently, it defaults to v2.0, however I am using MVC, and this will not work because that's a v4.0 feature. We really…
72
votes
6 answers

What causes an application pool in IIS to recycle?

I have been searching for info on this to no avail. The context of why i need this is another question I asked here. More specifically, does creating/updating/deleting files in App_Data cause a pool recycle? If someone could provide a detailed list…
Slavo
  • 15,255
  • 11
  • 47
  • 60
53
votes
6 answers

How to check app pool last recycled

is it possible to check when i recycled the app pool last time, i want to check the date when my app pool was last recycled, is there anything in IIS i can get this info.
Abbas
  • 4,948
  • 31
  • 95
  • 161
53
votes
10 answers

IIS Application pool PID

is anyone familiar with a way to get the Application pool that is associated with a process ID ? I am using Win32_Process to query the W3WP services and return the PID now I am trying to get the app pool associated with it.
Adonis L
  • 1,679
  • 4
  • 20
  • 23
50
votes
3 answers

How to keep ASP.NET assemblies in AppDomain alive?

Scenario: I've an n-Tier enterprise ASP.NET application deployed using Web Deployment Projects. All tiers produce independent assemblies that is consumed by the ASP.NET application. Problem: When I run the app. for the first time after deployment it…
this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
49
votes
4 answers

What is the difference between DefaultAppPool and Classic .NET AppPool in IIS7?

I have a problem with timeouts in IIS. In the web.config the session timeout was set to 60 minutes but after 20 minutes the session ends. This problem only occurs in IIS7 and not in IIS5. After some investigation, I discovered it was due to the…
Alvaro
46
votes
4 answers

IIS App Pools - Stop/Start vs Recycle

I've noticed that on one of my production web apps, when I manually recycle an app pool, the recycled worker process can take upwards of 60+ seconds to actually be completely destroyed, based on watching it in Task Manager. However, if I stop the…
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
43
votes
2 answers

Memory Usage of Each Application Pool

I Use IIS 7.5 and I have Some ASP.NET sites and Some Web Services in different Application pools. In current days the Memory of server is in high usage, So how I know each application pool used memory? Is there any way? any suggestion?
Saeid Alizade
  • 853
  • 3
  • 9
  • 18
42
votes
2 answers

Why do IIS application pools need to be recycled?

Application pools in IIS are recycled very frequently and I can't figure out why. I remember reading about a possible issue in IIS6 that meant you were forced to recycle but a quick search now turns up empty. On IIS6 or 7 you can turn off the idle…
Daniel Little
  • 16,975
  • 12
  • 69
  • 93
40
votes
3 answers

Get the Application Pool Identity programmatically

How do I get the identity of an appPool programmatically in C#? I want the application pool user and NOT the user who is currently logged in.
p0enkie
  • 665
  • 2
  • 11
  • 22
39
votes
3 answers

How to config application pool in IIS 7.5 automatically re-start when it was stopped?

My website was down several times per day and when I check the application pool (IIS 7.5), I saw it was stopped and I must restart it manually. How can I setup application pool so that it automatically restarts after an error?
vNext
  • 1,102
  • 4
  • 16
  • 28
1
2 3
58 59