Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We're trying to tune our IIS farm, and I'm trying to get my head around how Windows allocates resources in our current setup.

We have a pretty standard layout. We host 30+ ASP/ASP.NET sites on our server. We give each site its own individual application pool so we can manually recycle sites without affecting any others.

Since each application pool spawns its own IIS worker process (w3wp.exe), I was under the assumption that each process was allocated its own memory (meaning desktop heap, etc..). We began running out of desktop heap, so we increased the heap size for non-interactive desktops from 512 to 1024 as suggested, but we want to go even further if we can.

Am I right in assuming that since all of our app pools use the NETWORK SERVICE account, that only a single Desktop Heap is allocated to it?

If so, are their pro's and con's to simply giving each application pool its own custom user account?

Theoretically, each site would have its own memory allocation, and would only run out in EXTREME cases.

I'd appreciate your wisdom here. Thanks.

share|improve this question

1 Answer 1

Each process (and hence application pool) gets its own resource allocation. This includes the process heap (which is the memory the process uses). This heap is never shared between processes, regardless of the identity of the process.
However, the desktop heap which you refer to in your question is shared across the entire system. Changing the user that the application pools run as won't give them any more resource.

There is more information here

share|improve this answer
    
Yep - just a quick additional comment - there's a process heap, which is what the non-stack memory of a process is typically consumed by, and then there's desktop heap, which is a shared OS resource that doesn't belong to a specific process and isn't the same sort of heap. W3WPs don't share memory (except when the application itself sets it up, and most don't.) –  TristanK Apr 11 '11 at 9:42
    
@TristanK, thanks, I've edited my answer to make it a bit clearer. –  pipTheGeek Apr 12 '11 at 15:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.