Solution to Service Unavailable on the IIS Site

Source: Internet
Author: User

When a friend sees the Service Unavailable prompt, the general response is that the website is invalid, but the real problem is whether the Service Unavailable is prompted in English. Of course not. Let's share the solution to this problem.

Today, we will discuss the problem between Service Unavailable and program pool resource configuration on the IIS Site.

Right-click an IIS application pool and select Properties. A Properties dialog box is displayed, with four tabs.

1. "recycle" tab

On the recycle tab, you can set the interval between recycle process pools. After each recycle process pool, all the resources occupied by the process pool will be released. This effectively reduces the server load!
In "memory Recycle", you can set the maximum memory available for the program pool and the virtual memory size. If the limit is exceeded, the process pool will be terminated. The memory and virtual memory limits are determined based on the specific site. Generally, we recommend that you set the memory and virtual memory limits to around MB.

2. "performance" tab

An important item in the "performance" tab is "enable CPU monitoring". You can disable the process pool when the CPU usage of the program pool exceeds the specified percentage. The recommended Optimization Parameter is to refresh the CPU usage every one minute. When the CPU usage exceeds 50%, run the "off" operation.

3. "running status" tab

The "running status" tab also has two important parameters: the start time limit and the end time limit. For example, if you set super memory and super CPU, the program pool will be closed, and the program pool may fail to be closed. What should you do at this time?
If the pool is not closed for a specified period of time, IIS will forcibly close it and refresh the CPU time after waiting for the "close time limit. During the stop time, the website cannot be accessed and the message "Service Unavailable" is displayed ". Set the close time and start time interval: set a shorter time, for example, 10 seconds. In this way, when your website programs occupy a large amount of system resources, IIS automatically recycles the process and starts the process quickly, your website will be ready for work now.

We recommend that you set these two values to 10 seconds.

4. "ID" tab

In the "ID" tab, the primary account is used to set the account in which the current program pool runs, which is not covered in our discussion today.


The four option cards are mentioned above. Next we will go to the topic to solve the Service Unavailable problem.

1. First, open the IIS manager. Check the application pool. "DefaultAppPool" has an error and is not a stop icon.

2. Try to restart the "DefaultAppPool" application pool, but it didn't take long before the pool went wrong again.

3. It is time to view the event log. The following types of logs are found:

Event Type: Warning
Event Source: W3SVC
Event Type: None
Event ID: 1009
Date:
Event: 16:12:33
User: N/
COMPUTER: MAIL
Description:
The process that provides services for the application pool 'defaultapppool 'is unexpectedly terminated. The process ID is '20140901 '. The process exit code is '0xffffffff '.

For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.

4. Will it be a problem with the default program pool? So, try to create a new program pool. Change the default website program pool to a new one. But the problem persists. Similar logs appear.

Event Type: Error
Event Source: W3SVC
Event Type: None
Event ID: 1002
Date:
Event: 14:17:04
User: N/
COMPUTER: MAIL
Description:
The application pool 'apppool # 1' is automatically disabled because a series of errors occur in the process that provides services for the application pool.

For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.


5. Another log in the event log caught my attention as follows:

Event Type: Error
Event Source: DCOM
Event Type: None
Event ID: 10016
Date:
Event: 16:12:33
User: NT AUTHORITYNETWORK SERVICE
COMPUTER: MAIL
Description:
Application-the COM server application (CLSID is
{A9E69610-B80D-11D0-B9B9-00A0C922E750}
) To grant the user nt authoritynetwork service sid (S-1-5-20 ). You can use the component service management tool to modify this security permission.

For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.

6. It's a bit playful. Check out what service CLSID is for {A9E69610-B80D-11D0-B9B9-00A0C922E750} First. Finally find it in the following registry key:

HKEY_CLASSES_ROOTAppID {A9E69610-B80D-11D0-B9B9-00A0C922E750}

7. The name is "IIS Admin Service"

8. Okay. Find out what it is. Open "component Service" from "Administrative Tools", find the IIS Admin Service, and check whether the CLSID is consistent.

9. After confirming this, the next step is to add the network service permission for it.
A. Start and activate permissions and click "Custom "..

B. Add "NETWORK SERVICE" to the user list ",

C. Grant local startup and activation permissions to save and exit.

Solve this problem.

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.