The solution of W3wp.exe occupancy in win2003+iis6.0 environment

Source: Internet
Author: User

Some time ago, a friend of the server w3wp.exe process has been in the 80% to 90%, seriously affecting the access efficiency of other users ' websites. By the way, friends of the server for the Win2003 system, about about 100 sites. This problem occurs only if the corresponding site is found and check whether the horse is hung. Record the process of resolving this incident here.

Because there are more Web sites for a friend's server, different types of Web sites use different "application pools" instead of a different "application pool" for each site, so find the corresponding "application pool" name first. 1. Task Manager > View > select column >pid (process identifier)

Open the Windows Task Manager and bring up the PID column. The goal is to find the PID value of the w3wp.exe image name with high CPU usage, as shown in the following figure

2, Registered cscript

First, enter iisapp-a in CMD and return
At this point, you are prompted that this script cannot work with WScript.
Next, the system prompts you to register Csript and select Yes.
Finally, the system prompts "successfully registered cscript" 3, after the successful registration and then run IISAPP-A command

Execute the IISAPP-A command, the system lists the w3wp PID and the corresponding application pool name, which reads as follows:

Microsoft Windows [version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\administrator>iisapp-a
W3WP.exe pid:4880 Apppoolid:winwebmail
W3WP.exe pid:5028 Apppoolid:defaultapppool
W3WP.exe pid:4148 apppoolid:apppool005001
W3WP.exe pid:3492 apppoolid:apppool005003
W3WP.exe pid:6116 apppoolid:apppool020001
W3WP.exe pid:5652 apppoolid:apppool010001
W3WP.exe pid:5144 apppoolid:apppool001001
W3WP.exe pid:588 apppoolid:apppool005002
W3WP.exe pid:2568 apppoolid:apppool025001 4, find the corresponding application pool name through the PID value, and close the site with the elimination method

For example, W3WP.exe pid:5144 occupy CPU, then in IIS corresponds to the apppool001001.

5, close the site, observe the CPU state

If an "application pool" should be more than one Web site, then only a single shutdown of these sites to observe the CPU state.

Turn off one of the sites, if the CPU five minutes down, it is the site of the problem 6, the CPU to use the above-standard solution

There are many possibilities for CPU-exceeded solutions, such as memory recycling in the application pool attribute, performance monitoring, and so on, about the relevant content in the application pool attribute Baidu, also check whether the site is hung horse and so on. 7, restart IIS, continue to observe the CPU usage state

Only determine which Web site causes CPU occupancy rate is too high, can be good to the right remedy, find out the reason. Since one of the application pools for a friend server corresponds to several web sites, my approach is to turn off all Web sites for that program pool and then reboot the server directly to observe CPU usage. If there is no problem, open a site and observe. This uses the exclusion method to identify the problematic website.

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.