What should I pay attention to when choosing an enterprise website server?

I think it is very important to know what language programming and database our company's corporate website uses, and choose the operating platform of the server according to your company's website construction plan. For example, if your website uses php+mysql architecture, then the website space you buy must support php and mysql, otherwise you can't run your website program. Secondly, when purchasing, you should consult the space restrictions in detail, such as the number of IIS connections, and some restrictions do not have the peak CPU of IIS. Anyway, the reason is similar. If the shared space or virtual host is very important, such as IIS connection is 100, then your website can only accept 100 at the same time, which can be simply understood as allowing 65438 threads to send readings to the server at the same time.

Here are some materials for your reference:

The number of IIS connections refers to the number of accesses that the server can accept at the same time, which can be simply understood as the number of threads that are allowed to send reads to the server at the same time.

We will introduce it to you in five situations: (Take 100M space limit of 50IIS as an example)

1. Users download your site files through single thread or multi-thread, and then disconnect normally. These connections are instantaneous, which means that you can instantly accept 50IIS space and download up to 50 threads at the same time.

Note: At present, some multithreading tools, such as Thunder and flashget BT, can download 80 threads at the same time, so even if only one user is downloading one of your website files, the website will not open at this time.

2. When a web page is viewed, the server will establish links with the browser of the viewer, and each link represents a concurrency. When the page contains many pictures, the pictures are not displayed one by one. The server will generate multiple links and send text and pictures at the same time, which will improve the browsing speed. If there are more pictures on the page, the number of concurrent links on the server will increase. When the service sends a picture or page, the server closes the link with other requesters.

Note: Some users say that opening the 1 browse window means opening the 1 IIS connection, so in theory, the space of 50 IIS can accommodate 50 people online at the same time. This statement and reasoning are wrong. If you open a page with two pictures, the number of IIS threads required to open this page is 3 (1 and 2 are required to read the html code of the page).

3. When the user opens your page, even if he stays on the page without making any request to the server, he will be online within 15 minutes after the user opens one side, which means that the website of 50IIS can accept different users to open 50 pages within 15 minutes.

Note: Similarly, some users ask why the counter shows that there are 5 people online and the 50IIS host can't be opened, and the reason is the same. The number of people online is calculated according to 15 minutes after the user clicked (sent the request) for the last time. During this 15 minute, no matter how the user clicks (including opening a new window), the counter is calculated online according to one person, but the IIS number is not. The correct explanation should be: your website has 50 connections, of which 5 people visit the forum normally. Obviously, the concepts of online number and IIS connection number are different.

4. When you have an Iframe in your page, you will have twice the online time for each additional frame! Because this is equivalent to the user requesting multiple pages from the server at the same time.

5. Some users' ASP pages call too many pages, and some pages reach as many as 10, which also consumes a lot of IIS.

6. When the user opens the page and then closes the browser normally, the number of online users will be emptied immediately. What does it mean to limit the number of CPU allocations?

Dual Xeon 2.8 processor, that is to say, a host with a CPU limit of 8%, is already quite powerful in data processing (a P3 server also ran dozens of stations a few years ago). When the CPU required by your site program exceeds the limit, resulting in thread blocking and the server can't send data, IIS will restart your site alone, which will last for about 30 seconds, and the site will be inaccessible at this time.

How many IIS connections can an 8% CPU limit support?

The number of people online depends on your program.

1, how many people are online at the same time in the HTML site will not exceed the limit, because HTML is not interpreted by the server, but by the browser of the client, so there is no limit to executing HTML without bandwidth problems.

2.ASP procedure is very different. If 8% CPU limits the number of IIS, there are about 800-5000 programs without infinite loop and deadlock under normal circumstances.

3. Other programs such as PHP, CGI, NET, etc. It will be 2-3 times more efficient than ASP files.

How to choose a data host?

At present, data virtual hosts are divided into unrestricted IIS and restricted IIS.

1. If your site is an enterprise site, it is recommended that you select Restrict 1000IIS. General enterprise site 1000IIS is enough, and the traffic and resource consumption of all enterprise sites are not large, which ensures the stability and speed of the host. Of course, this can also be chosen according to your actual situation.

2. If your site is of other types, the number of IIS connections will be the lifeblood of your site, because the survival of a website depends on the click rate and the number of online users, so I suggest you choose a host that does not limit IIS.

How to use the data host?

Only the CPU is limited, so I will introduce you to the common situation of CPU consumption.

1 MDB is usually larger than 10M, which will consume a lot of resources. You can check MDB, ASP, ASA and other files larger than 10M in the site file for optimization.

The infinite loop and deadlock of 2.ASP file. This is also a problem that puzzles most primary users at present. Many users choose some free downloaded codes without optimization and inspection, so there are many unreasonable calls, dead loops, dead shrinkage and security risks. Even if such a program is debugged locally, the CPU will run at full capacity, especially on the server side.

3. Large download files will also consume a lot of CPU resources. We have mentioned that some multithreading tools such as Thunder and flashget BT can download 80 threads at the same time. In addition, chain theft is also very serious. You can always try to change the address of some downloaded files to prevent other users from stealing links.

4. Try to use the technology of upgrading to HTML pages to reduce the number of database calls. At present, portal websites use this technology to speed up website browsing, which is also the development trend of websites.

In addition, it is recommended to buy the space of enterprise station, and it is recommended to buy IDC manufacturers in Gao Zhen, such as New Net and Wang Wan.