Jan 11, 2012
tom

w3wp.exe hogs memory

Question

On a Small Business Server 2011 installation a whole number of w3wp.exe processes appear to be using a disproportional lot of memory. The SBS out-of-the-box installations comes with a total of 7 sites and 20 ASP.NET application pools (Sharepoint, Exchange, WSUS and SBS-specific stuff like Remote Web Workplace).

The resulting dozen of w3wp.exe processes tends to consume more than 4 GB of the server’s memory over time with the peak application pool being the one belonging to WSUS with around 800 GB in the working set. Manually recycling the application pools through the IIS MMC helps temporarily reduce the memory usage (the w3wp.exe processes shrink back to 10 MB, some of them regrowing quickly), but obviously is not something an admin wants to do all day. I was unable to find any recommendations on automatic recycling of the SBS-preinstalled application pools, so I am somewhat reluctant to “just do it” on production systems.

My research on the net on how to limit this only threw up a number of posts stating that w3wp memory consumption would not hurt but benefit performance as memory would be “freed when needed by other applications”. The trouble is that it does not work out:

  • for one, an SBS is a multi-role server, one of the roles (the major one) being CIFS network storage which immensely benefits from filesystem caching which again relies on memory being “free” as in “not used by other processes in any way” – ASP.NET application pools which are hardly ever seeing users and eating memory are counterproductive
  • another thing is that I still have to see substantial decrease of the w3wp instances memory consumption upon memory shortage – what I see is a minor decrease by significantly less than 100 mb and excessive swapping instead – again hurting performance

I hardly ever administer IIS or ASP.NET apps, so any ideas on how to effectively trim the memory requirements for the application pools are welcome.

Answer

Welcome to the wonderful world of SBS. Recommended requirements for RAM = 10GB… and it REQUIRES a minimum of 8gb. (according to Microsoft.) for a good reason. It’s not a fine-tuned well-oiled machine… it’s very sloppy, bloated, and has everything under the sun bundled together. The more RAM you can throw at that box… the better. Unfortunately, you’re limited to 32gb max. Which imho… is silly.

No related posts.

Leave a comment