Iis – Assign more memory to w3wp worker processes

application-poolsiisiis-6windows-server-2003worker-process

My workers processes cap out at 70mB. How do I raise this limit? I have 4Gb on Windows 2003 IIS6. Thanks!

Best Answer

In Internet Information Services (IIS) Manager, go to Application Pools, choose your web application/site's pool and under Recycling choose the limit of maximum virtual memory the worker process can consume until it gets recycled.

IIS 6 memory recycling

This blog post on MSDN explains when to configure memory recycling:

When to configure Memory Recycling In most scenarios, recycling based on a schedule should be sufficient in order to “refresh” the worker processes at specific points in time. Note that the periodic recycle is the default, with a period of 29 hours (1740 minutes). This can be an inconvenience, since each recycle would occur at different times of a day, eventually occurring during peak times.

If you have determined that you have to recycle your application pool based on memory threshold, it implies that you have established a baseline for your application and that you know your application’s memory usage patterns. This is a very important assumption, since in order to properly configure memory thresholds you need to understand how the application is using memory, and when it is appropriate to recycle the application based on that usage.