Program causes the application pool of the IIS server to stop, and the application pool of the iis server to stop.

Source: Internet
Author: User

Program causes the application pool of the IIS server to stop, and the application pool of the iis server to stop.

When the program runs to a certain step, the application pool stops automatically. The results are consistent after several attempts. There are several reasons for this result:

1: This IIS6.0 will be suspended when the SP1 Patch Is Not Installed, but now Microsoft has released a patch in the automatic update. Generally, this problem will not occur after you finish the latest patch. (So the current IIS false death is not very closely related to this)

2: Since IIS6.0, CPU resources are limited in the application pool, unlike the previous IIS.5. The reason for the suspended pool is that the pool is pulled to death. When the website cannot be opened, you can see that one of your application pools is disabled and a Red Cross is displayed on it. Right-click the website and the website will be automatically restored. This is probably because of the following factors.

(1): You have limited the resources of the application pool. The limit is too small, for example, 50 or less. In this case, if the website under your pool occupies too much CPU, for example, if it exceeds 50%, it will automatically die in five minutes. By default, the application pool created manually exceeds the resource limit and will not be operated.
Solution to the above problem: 1: No CPU resources are restricted (this is not desirable, there is no limit on resources, some programs have bugs occupying resources, the server will be killed, and you may not be able to operate the server .) 2: If you choose to disable the service when the resource is exceeded, the service will fail 5 times by default and be restored within 90 seconds. Generally, the service will be available by default. The website can be automatically restored. If the website is not permanently closed, it means that the resource is closed more than once, and the pool is automatically restored within a certain period of time. No operation means no recovery. This is a misunderstanding of many people.

(2): The memory is limited to the virtual memory and the maximum memory limit on the IIS6.0 application pool. If this is set. If the website traffic is too large, it will also be suspended. Therefore, we do not recommend that you set it here. By default.

3: the memory of the server itself is too small. Of course, the website needs to use the memory. When the memory is insufficient, the application pool will also die and become disabled. The application pool can be restored only when all the memory is released. In this case, you need to consider adding memory or checking which program occupies the memory. For example, the MSSQL database is a large memory user. It is best not to use the same server as the WEB server. Many people use 1g memory as the 2003 system, and the 2003NET structure occupies a lot of memory. Therefore, to select 2003 for the server, they have to add the memory to 2G or higher. The memory is not enough as mentioned in the previous two points, and it cannot be operated or automatically restored.

4: The ACCESS database is too large or there are too many queries, this will also lead to the failure of IIS, solution; repair the ACCESS database, or use the ACCESS database as little as possible, upgrade to the sqlserver database; or in terms of technology innovation, such as some website Systems, news, mobile and other cms, pjblog, zblog and other blog programs, all support generating static functions.

5. Use different application pools for different websites: depending on your actual situation, it is best to separate an application pool with a large site. If the resource limit exceeds automatic recovery, see the preceding figure (1) as mentioned, this will not affect other sites. Medium-sized site: multiple websites share one application pool. For example, five sites use one pool and set their resource time. In this way, even if they exceed resources, they will not affect the websites of other application pools.

6: Set the recycle time: Many people think that the shorter the recycle pool is, the better it is. In fact, the memory is recycled every time it is recycled, but the load on the server is increased, when the server is busy, other application pools may die. We recommend that you set 1000 in total. Other independent pools can be set to 600 based on their website traffic. We do not recommend that you set too short for sharing.

7: the website background may not be too long before it will automatically exit and re-log in again: in this case, you set the recovery time to be too short. Set it. Do not set 20 or 30 points. This is not good. Another reason is that it is related to the response setting time of the site, and the setting takes a little longer.

8: "Service Unavailable" is displayed when iis6 of windows 2003 accesses the site of the local machine ";
View the application pool of iis. The status prompt is: no error is specified, and the application pool stops running automatically;

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.