You can use the following settings to control the memory usage of ASP. NET hosts on servers. You can also set the ASP. NET host process to regularly rebuild the process, which is similar to the timed restart in the AppPool in IIS6. This prevents the server from occupying a large amount of idle memory for a long time and improves the running efficiency of ASP. NET.
The location of the ASP. NET host configuration file is
C: \ WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ CONFIG \ machine. config
Open the file in a text editor and find and modify the file according to the comment.
ProcessModel
Enable = "true"
Timeout = "01:00:00" time-out period. Specify how long the aspnet process will be rebuilt. It is recommended to set it to several hours. The format is "hour: minute: second"
IdleTimeout = "00:20:00" How long does aspnet disable the process when no action is taken? Tens of minutes are recommended.
...
MemoryLimit = "40" -- the maximum number of memory occupied by aspnet servers. The default value is 40%.
...
The settings related to ASP. NET hosts will be introduced here, and I hope it will help you.
- Analysis of file system operation risks of ASP. NET Virtual Hosts
- Analysis of hidden risks of ASP. NET virtual hosts when creating data sources
- Analysis of hidden risks of ASP. NET virtual hosts in file directory management
- Analysis of hidden risks of ASP. NET Virtual Hosts When deleting file directories
- Analysis of hidden risks of ASP. NET virtual hosts in displaying files