Finding application pool pid through iisapp command to solve IIS CPU usage is too high.

  

Core Tip: Finding pid through iisapp command to solve IIS CPU usage is too high. Let's take a look at some parameters of iisapp“iisapp -a pid”, you can find the corresponding domain name...

Let's take a look at some parameters of iisapp

iisapp -a pid

Domain name

Conversely iisapp -p domain Check pid syntax

iisapp [a/

AppPoolName |  /p

AppPoolID]

Parameters

/a AppPoolName

Specifies the name of a specific application pool. (Optional)

/p AppPoolID

Specify the application pool by ID number. (Optional)

Comments

If no application pool name or ID is specified, iisapp lists all running applications.

The /u and /p command line options are available only for

when using /s. You must use both /p and /u to provide a user password.

Iisext.vbs performs the same operations available in IIS Manager. You can use any of these tools to manage your IIS website.

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

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

Description: w3wp.exe is the application pool process in IIS, there are several processes will have several w3wp.exe, will find a w3wp.exe process CPU and memory are terrible.

Well, let's take a look at how to solve the specific practice first is windows2003

First open the windows task manager & ndash; click to view — select the column & ndash; put the PID on the hook, You can see the PID options in the process.

Click Run – enter CMD– enter iisapp -a— very strange, the PID displayed here is popped up one by one, I don't know if others will, no matter what, I am like this, too bad for Check it out.

Note, I hope that people BLOG heard that the first time running, will prompt no js support, click OK. Then run it again. This way you can see the application pool corresponding to the pid, which I have not tested.

So, first enter CMD: cd %systemroot%\\system32

Then enter: cscrIPt.exe iisapp.vbs -a

The CMD window is displayed 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 pop up the window , but does not affect the display. With this, it will be easier.

In the Re-Task Manager, look at the PID value of the process that occupies the CPU and memory too high. You know which application pool has a problem, you can find out what is wrong with the website.

Related Information:

Win2000 Solution

What should I do under 2000? Win2000 is not very convenient, you need to set the site's application protection to high, the default is medium.

Then open the Administrative Tools > Component Management, Component Services & mdash; Computer & mdash; My Computer & mdash; com + Application

Select View > Status View, you can see something like the following Display:

Name Run PID

IIS-{www.45it.com//Root} is 2544

Copyright © Windows knowledge All Rights Reserved