How to find the PID through the Iisapp command to solve the problem of high CPU usage of IIS _win server

Source: Internet
Author: User
Tags cpu usage high cpu usage
Let's take a look at some of Iisapp's parameters.

Iisapp-a PID

can find the corresponding domain name

Conversely iisapp-p domain to check the syntax of the PID
Iisapp [A/
AppPoolName | /P
AppPoolId]

Parameters
/A AppPoolName

Specifies the name of a particular application pool. (optional)

/P AppPoolId

Specifies the application pool by ID number. (optional)

Comments
If no application pool name or ID is specified, then Iisapp lists all running applications.

When you use/s only,

To use the/U and/P command-line options. You must use both/P and/U to provide a user password.

IisExt.vbs performs the same operations that are available in IIS Manager. You can use any of the tools to manage an IIS Web site.

The computer that issued the command must be running Windows XP or the Windows Server 2003 operating system. The user must be a member of the Administrators group on the computer to which the command affects.

The computer that the command affects must be a server running Windows Server 2003 with Internet Information Services (IIS) 6.0.

Description: W3wp.exe for IIS inside the application pool process, there are several processes will have several w3wp.exe, will find that a w3wp.exe process CPU and memory are very high terrible!

Well, let's see what we can do in practice, first of all, windows2003.

First open Windows Task Manager – Click to view-Select columns – Put the PID on the hook!!,,

You can see the PID options in the process.

Click to run-input cmd– input iisapp-a-very strange, here to show the PID, is to use pop-up windows appear one after another, do not know others will not,, anyway, I was so, too bad for the view!!
Note, I hope people blog heard that the first run, will be prompted without JS support, click OK. then run it again. So you can see the PID corresponding application pool, this I have not tested!

So, first again cmd inside input: cd%systemroot%\system32
And then enter: CscrIPt.exe iisapp.vbs-a
The cmd window appears as follows:
W3WP.exe pid:2488 Apppoolid:apppool #26
W3WP.exe pid:3008 Apppoolid:apppool #2
W3WP.exe pid:4704 Apppoolid:apppool #15
W3WP.exe pid:6388 Apppoolid:apppool #19
W3WP.exe pid:6004 Apppoolid:apppool #8
Oddly, I still popped the window, but it doesn't affect the display! It's good to do it!

Task Manager to see the CPU and memory too high process of the PID value, you know which application pool is out of the question, you can find out what the specific site has a problem!!!

Related information:

The solution of Win2000

2000 What to do? Win2000 is not convenient, you need to set the site's application protection to high, the default is in.

Then open management tools-> component management, Component Services-computers-My Computer-com+ applications
When you choose to view the-> status View, you can see a display similar to the following:

Name Run PID
Iis-{www.zoubin.com//root} is 2544

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.