High memory usage on W3WP.EXE process


Article ID: 52155 - Last Review: Aug 13th, 2014

PROBLEM

The W3WP.EXE process is used to run application pools, and in some cases can accumulate a large memory footprint. 




RESOLUTION

In order to resolve this issue, we recommend resetting the application pools on a daily schedule.


Identify which AppPools need resetting

1. Open the Start menu and right-click the command prompt.  Run as administrator.
2. Go to %windir%\system32\inetsrv\
3. Type appcmd list wp and hit Enter.
4. Note the AppPools listed.  You will need these names to reset them.


Resetting the AppPools

1. Create a new batch file in Notepad.
2. In the batch file add appcmd recycle apppool /apppool.name:string
    NOTE: where we show string you type the name of the AppPool to be reset.
    Example:  appcmd recycle apppool /apppool.name:prairieFyre  would reset the AppPool named prairieFyre.
3. Repeat step 2 (one command per line) for each AppPool found in the Identifying stage.
4. Once this batch file is completed and saved, you can add it as a Scheduled Task in Windows.  We recommend scheduling it to run once a day, outside business hours.


APPLIES TO

6.X and 7.X 

Keywords: w3wp.exe memory high usage


Posted Thursday, June 12, 2014 by AndrewM
http://micc.mitel.com/kb/KnowledgebaseArticle52155.aspx