Iisapp.vbs query which w3wp.exe site consumes resources (CPU or memory) _win server with IIS self-tool

Source: Internet
Author: User
The discovery is due to the fact that the W3wp.exe occupies 100% of the CPU, resulting in a huge 80-port footprint and no other operations.

What you see in Task Manager is that w3wp.exe consumes too much resources, so you need to view the PID values of w3wp.exe.

Here's the process of looking for an error site: To find this site, you have to link the problematic process to the site's application pool. First set the Task Manager to view the way to add the PID display:






Then the command line runs IISAPP-A, and you can see the relationship between the PID and the application pool:



Then go to IIS to see the application pool corresponding to the site, the problem of the site is found, the rest is the site code in the problem.

Iisapp Syntax
Iisapp [a/apppoolname |/P AppPoolId]

Iisapp parameters
/A AppPoolName
Specifies the name of a particular application pool. (optional)
/P AppPoolId
Specifies the application pool by ID number. (optional)
Iisapp notes

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

You can use the/U and/P command-line options only when/s is used. 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.


Iisapp sample
The following example shows how to use Iisapp in a particular case.

Iisapp View all running applications
The following example displays all the application pools running on the local computer, identified by their process ID (PID) and application pool ID (apppoolid). This command ignores all optional parameters and accepts default values.

Iisapp

Iisapp emits the following response information:

Connecting to server ... has been completed. W3WP.exe pid:2232 apppoolid:defaultapppool W3WP.exe pid:2608 apppoolid:myapppool Run application by Process ID
If you know the PID for a particular application, you can check its status by using the following command.

iisapp/p 2608

Iisapp emits the following response information:

Connecting to server ... has been completed. W3WP.exe pid:2608 Apppoolid:myapppooliisapp format legend

Ellipsis (...)

Separates the options with a vertical bar (|) between braces ({}). For example: {even|odd}

"
format meaning

Italic

User must provide

Bold

Users must exactly type the elements that are displayed

Parameters that can be used repeatedly on the command line

between brackets ([])

Optional items

Users must select only one option from the option set

Courier font

Code or program output

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.