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

I have the Windows Server 2008 SP2 EE x86 with a 6GB of memory. There are 10 apps pools working on IIS7. How much memory can use all 10 apps pools and each app pool separately? What are the limits on which my applications would throw OutOfMemoryExceptions?

And what is the best way to monitor performance and available free server resources for an IIS7 app pools? I tried to use default performance monitor and performance counters of processes (private bytes, virtual memory, working set) which are identities by index, but I can not link these counters to current app pools in real time.

share|improve this question

1 Answer 1

Each App Pool can use up to 2GB of private address space, unless you've played with BCDEDIT options like 3GB.

If all 10 used all 2GB possible, you'd be in paging hell.

Your question is more generally around how processes can allocate memory on Windows - I'll throw some terminology at you for further research.

Private bytes - this is the amount of memory uniquely charged to the process Virtual bytes - this is the total amount of memory the process has allocated Working Set - this is how much RAM is actually being used by the process

Reserved memory - memory that's earmarked for use by an application, but doesn't actually have RAM/pagefile backing yet Committed memory - memory with backing

Now, the question becomes more complicated when you add app frameworks like .Net in - .Net has a lower-than-2GB workable maximum before OutOfMemoryExceptions happen. And generally, in my experience, they won't happen on an application that isn't either leaking something or under greater load than it can handle.

Perfmon with the process counters is typically all you can do with App Pools; you can enable the option to put the PID in the process name, if that helps, and APPCMD LIST WP regularly to keep a note of which app pool is doing what.

share|improve this answer
    
As I understood, "Working set" of process would show me the real physical memory usage. And the maximum for process is 2GB "Working set"? –  SmaGMan May 11 '11 at 7:42
    
Yep, in an always-less-than-2GB-but-approaching-a-max-of-2GB sort of way. –  TristanK May 12 '11 at 4:34

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.