Asp. NET Tip: HTTP performance tuning sets the connection expiration time

Source: Internet
Author: User
Asp.net| Skills | performance

Setting Connection Timeouts
Set Connection Expiration Time

Let's start by talking about why you set the connection expiration time.

Connection time-outs help to reduce the loss of processing resources consumed by idle connections. When you enable connection time-outs, IIS enforces the time-outs in the connection level.

Setting the expiration connection time reduces the consumption of system resources that are wasted in processing idle connections. When connection expiration is enabled, IIS will apply the expiration time to the connection level.

To set the connection expiration time:

IIS-Web Site-Property--connection timeout, type a time that indicates the maximum time that IIS has to handle idle threads, and the connection will be reclaimed.

Personally think the length of this connection time depends on the combination of the site's factors. If your site is slow then the expiration time needs to be set longer, otherwise the client has not completely downloaded the page connection is closed. If the site performance is better, then the connection is not necessary to set up so long, so some idle connection will occupy more system resources, early release of resources, so that the overall performance of the site upgrade, is to set the final connection failure time.



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.