Talking about three kinds of limitations of virtual host

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The current virtual host is mainly divided into three types of restrictions:

One, the flow limit: is the direct restriction network traffic, this kind of restriction is usually the most severe one kind of limit, 10 g's flow roughly supports 50 people on-line. The month after the flow of more than one months, the site can not be normal access, the solution is to upgrade space or increase traffic.

Second, the CPU limit: CPU limit does not seem to limit the IIS or network traffic, but because each program run requires a certain CPU quota, but also disguised traffic restrictions, often web page tip online is due to too little CPU limit. After refreshing or 15 seconds, you can get a temporary normal operation, and about 1% of 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 now used most, but also by the majority of users or host to recognize, is a relatively loose flow limit scheme. Typically 20 IIS is equivalent to 1%CPU occupancy.

In short, the virtual host is not actually unrestricted, the overall divided into the above three ways, how you choose, depends on your needs. If your program uses little CPU, is optimized program, you can choose to limit the CPU, so that your online can get the greatest play; if you are a beginner, or a forum user, or a website program has a BBS, select IIS restrictions or direct traffic restrictions is a good choice.

Attached: A detailed explanation of the problem of simultaneous connection number and online number

1, visitors visit the site, must be with the site through the TCP protocol, establish a connection. This connection is present when reading information from the server and automatically shuts down 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 to visit a site, may occupy 1-3 connections, this is automatically handled by the computer, the purpose is to speed up. Therefore, 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 statistics in the forum is based on the number of people who visit the forum within a certain time period, which is not directly related to the number of connections. For example DZ Forum, the default seems to be 15 minutes of activity number of time, perhaps the forum to show a user is still online, but http://www.508z.com users because not (is) in reading the forum data, so will not occupy the number of connections. Therefore, as long as the visitors to the forum is not too centralized, it will not exceed the maximum number of simultaneous connections at a point in time, and the number of online users in the forum will greatly exceed the maximum number of simultaneous connections allowed in space. Some users in order to show the popularity of the forum, can be in the Forum statistics online number of time range (DZ Forum has this setting), 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 typically 1000-2000. This is why the service provider dares to open an unlimited number of hosts, in essence not unlimited number of connections.

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.

What is the number of IIS connections?

IIS connection number refers to the number of concurrent connections, the specific explanation I divided into several cases (100M space 50 people online as an example):

A, users 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 website 20 minutes can accept different users to open 50 pages.

C, 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 last click (issued a request) 20 minutes after the calculation, in this 20 minutes no matter how users click (Including new window to open) are still a person online.

D, when your page exists within the framework (IFRAME), then each more than one frame will be more than one times online! Because this is equivalent to a user requesting multiple pages at the same time.

E, when the user opens the page and then closes the browser normally, the number of users online will be cleared immediately.

Then, what is the number of forum online?

Forum online only calculates the number of active users for a certain period of time. Here the time users can set their own, DZ forum defaults to 15 minutes.

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?

Analysis:

A, you use the plug-in version of the Forum or Landscaping forum:

Now the plug-in is very miscellaneous, not only the server resources, but also make the forum run slow (no plug-ins can be faster than one time), at the same time the number of online, some plug-ins call many frameworks, less 2, 3, more than 4, 5, and even play music online, so that a person online 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.

B, your website is the homepage + forum form:

This is where the home page and forum are competing for your online numbers.

C, your forum has players inside

One person online, and then he plays music online, which accounts for two people online.

D, your forum within the framework of the form of the Web page

Each frame is one more times online.

E, your forum set online time too small

DZ Forum defaults to 15 minutes, because the forum online only calculates the number of active users for a certain period of time, when you set a smaller time, it seems that the number of online forums is less natural.

F, your space there are multiple forums

Some customers in a space to upload multiple forums, such as BBS, BBS1, BBS2, and so on, there is no doubt, so that each forum is to compete for the number of lines.

G, your forum pictures and other documents have been hotlinking

For example: Your forum has a picture file, was pasted (note is pasted is not uploaded) to other forums, other forums of users browsing the file when also accounted for an online number, especially when the logo link attention, must be the other party to upload your logo to his space.

H, your space with download files

If users use the Internet ant class software, each thread represents an online, very powerful.

Solution and Recommended Index:

A, remove the garbage plug-in version, with the standard version ★★★★★

B, as far as possible not to use the form of a framework to create pages ★★★

C, try not to play music, movies, download ★★★

D, prevent the occurrence of hotlinking ★★★★

E, upgrade purchase support for more online number of spaces ★

This article is from: http://www.508z.com/article/sort027/info-4357.html

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.