You can use the following settings to control the memory usage of ASP. NET hosts on servers. The ASP. NET host process can be set for scheduled reconstruction (similar to timed restart in AppPool in IIS6). This prevents the server from occupying a large amount of idle memory for long-time running of aspnet 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.