Some experiences in ASP. NET host resource control

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.