简体   繁体   中英

IIS Worker Process not releasing memory until any other Application required memory

I have six websites on IIS and its worker process memory is around 1.5 GB and its not decreasing after process completion until I run some other applications on system which required memory, then IIS Worker Process memory is decreasing with increasing of other applications memory.

use windbg tool to debug your site and find out the exact reason what is causing the issue. Application pool recycles usually shuts down old worker processes so try to set some application pool recycling settings based on your requirement in iis. use.Dispose() at the end of the request or when you are finished using the connection.

for a now you could set the action to KillW3p after a certain CPU limit.

<applicationPools>
   <add name="DefaultAppPool">
     <cpu limit="80000" action="KillW3wp" resetInterval="00:02:00" />
   </add>
</applicationPools>

Follow the below step. its works for me.

Step 1: To enable GC memory tuning, add the following setting to the Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config

<configuration>
  <!-- ... -->
  <runtime>
    <performanceScenario value="HighDensityWebHosting"  />
    <!-- ... -->

link > https://docs.microsoft.com/en-us/aspnet/whitepapers/whats-new-in-aspnet-45-and-visual-studio-2012

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM