IIS restrictions, traffic throttling vs. CPU limits

Source: Internet
Author: User
Tags iis
iis| flow is the direct restriction of network traffic, this restriction is usually the most severe one of the traffic restrictions, 10 g of the flow of the general support of 50 people online. After the month flow exceeded, within one months, the site can not be normal access, the solution is to upgrade space or increase traffic!
Two: CPU limit
CPU restrictions do not appear to be limited to IIS or network traffic, but because each program running requires a certain amount of CPU quotas, but also disguised traffic restrictions, usually the Web page shows too much online due to the CPU limit is too small caused! by refreshing or after 15 seconds can be temporarily normal operation, usually 1% The CPU limit is equivalent to 20 IIS connections! This is important for forum space, the Forum CPU limit once too small will not run normally!
Third: IIS Restrictions
IIS restrictions are the most used now, are also recognized by most users or hosts, are the only loose traffic restrictions, usually 20 IIS is equivalent to 1%CPU occupancy!

In short, the virtual host does not have unlimited traffic, total can be divided into the above three ways, how do you choose, to see your needs, if your program occupies little CPU, is the optimization of the program can choose to limit the CPU, so that your online can get the biggest play, if you are beginners, or forum users, or website program has BBS, choose IIS limit or direct traffic limit is a good choice!

A detailed explanation of the problem of simultaneous connection number and online number
Many users of the concept of the number of connections are vague, now described as follows:

1, visitors visit the site, must be with the site through the TCP protocol, establish a connection. This connection is present when the information is read from the server and is automatically closed when the read is finished. So, when a page has been fully displayed on the client's display, the connection used may have been closed.

2, each browser, visit a site, may occupy 1--3 connection, this is automatically handled by the computer, the purpose is to speed up.
Related issues: It is not surprising that for a basic host with a connection number of 30, sometimes only more than 10 people can access it.

3, the number of online forum statistics, the number of people who visit the forum within a certain period of time is the standard, and the number of connections should not be related. For example, moving the web forum, the default seems to be 40 minutes (? The number of activities that are not clearly recorded. Perhaps the forum shows a user is still online, but the user is not (positive) in reading the forum page, so it will not occupy the number of connections.
Related issues:
(1) So, as long as the viewer's access to the forum is not too centralized, will not exceed the maximum number of simultaneous connections at a point in time, the number of online statistics in the Forum will greatly exceed the maximum number of simultaneous connections allowed in space.
(2) Some users in order to show the popularity of the forum, can be in the Forum statistics online number of time range (Dynamic Network forum to provide this function), even can be a day to browse your site, all of the people count as online number.

4, although the server can specify the maximum number of connections per site, but also has the total maximum number of connections to the server. Therefore, even if the maximum number of connections to the user site is unlimited, when the server reached the maximum number of connections, still can not access the site. The maximum number of connections to the server is generally 1000--2000.
Related issues:
(1) This is why the service provider dares to open the number of unlimited connections of the host, is not an unlimited number of connections.
(2) Western Digital host, allow the number of connections are higher, should be able to meet user needs.

5, now the host service, some service providers use many people to the concept of the above vague, and misleading consumers, so the host should be cautious to engage in

Learn what IIS connections are
IIS connection number refers to the number of concurrent connections, what do you mean?
To be divided into several situations: (Take 100M space 50 people online for example)
A user to download your files, the end of normal disconnect, these connections are calculated in an instant, that is to say that you 50 of people's Web site can be accepted at the same time 50 points to download
B users open your page, even if you stay on the page does not make any request to the server, then the user opened a side of the next 20 minutes will also be counted as an online, that is to say that you 50 people's Web site within 20 minutes to accept different users to open 50 pages
C in the case of the above B users continue to open the other pages of the same site, then the number of online users in accordance with the user's last click (issued a request) after the 20-minute calculation, in this 20 minutes no matter how users click (including new windows open) are still a person online.
D when your page has a frame (Iframe), then each more frame will be one more times online! Because this is equivalent to a user requesting more than one page to the server at the same time.
E when the user opens the page and then closes the browser normally, the number of users online will also be cleared immediately.

Then learn what the number of forums online is.
Forum online only calculates the number of active users within a certain period of time.
Here the time users can set their own, the Dynamic Network forum defaults to 40 minutes of relatively accurate values.

According to the above instructions, it is clear that the Forum online and IIS connection number concept is different
Why does the number of IIS connections and forums online not match?
The specific analysis is as follows:

1: You use the plug-in version of the forum or landscaping version of the forum!
Now the plug-in is garbage, not only the server resources, but also make the forum run slowly (no plug-ins can be faster than one time), while very accounted for the number of online, some plug-ins call many frameworks, less 2, 3, more then 4, 5! Even have to play music online so that a person online is quite with a lot of people online! The beautification of the Forum because of the use of a large number of pictures, but also more than the standard version of the forum occupied IIS large.

2: Your website is the homepage + forum form!
So home and forum to compete for your online number!

3: There is a player inside your forum!
One person online, then he plays music online, it accounts for two people online!

4: Within your forum there is a frame form of the Web page!
Every frame, just one more times online!

5: Your forum set online time is too small!
Dynamic network defaults to 40 minutes, because the forum online only to calculate the number of active users in a certain period of time, when you set a smaller time, it seems that the number of online forums is less natural!

6: There are many forums for your space!
Some customers in a space to upload multiple forums, such as BBS bbs1 BBS2 and so on
There is no doubt that such a forum is to compete for the number of lines!

7: Your forum pictures and other documents have been hotlinking!
For example: Your forum has a picture file, pasted (note is pasted is not uploaded) to other forums!
Other forums for users to browse the file is also counted as an online number!
Especially when the logo connection attention, must be the other side of your logo upload to his space!

8: Your space to put a download file!
If the user uses the network ant class software, each thread will represent one on-line, very formidable!
——————————————————————————————————

Solution:

1: Remove the garbage plug-in version, with the standard version!
2: Try not to use the form of a framework to make the page!
3: Do not put any music, movies, downloads!
4: Prevent the occurrence of the theft of the company!
5: Upgrade Purchase support more online number of space!

  

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.