Some tips on ASP.NET host resource control

  • 2020-05-26 08:15:10
  • OfStack

You can control how much server memory is used by the ASP.NET host with the following Settings. Besides, the host process of ASP.NET can be set up for timed reconstruction (similar to the scheduled restart of AppPool in IIS6), so as to avoid the server running aspnet for a long time and occupy a large amount of free memory, which is conducive to improving the running efficiency of aspnet.
The ASP.NET host profile location is
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
Open the file with a text editor and find the contents to modify with comments
processModel
enable="true"
timeout="01:00:00" timeout, specify how long it will take to rebuild the aspnet process. It is recommended to set the number of hours in the format "hours: minutes: seconds".
When idleTimeout="00:20:00" how long does aspnet have no action to shut down the process, 10 minutes is recommended
...
memoryLimit="40" --aspnet USES up to 40% of server memory by default
...
ASP. NET host related Settings will be introduced to you here, I hope to help you.


Related articles: