W3wp.exe CPU-intensive solution 1th/2 page _win server

Source: Internet
Author: User
Iisapp.vbs:IIS Application Query Script

Reports the process identifier (PID) that provides services for a particular application pool and is currently running the W3pwp.exe process.

Grammar
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.

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.



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


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

View running applications 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:myapppool

Format legend

Format meaning
Information that italic users must provide

Bold users must type the elements exactly as they are displayed

Ellipses (...) can be used repeatedly on the command line

Optional items between brackets ([])

Between curly braces ({}), separate the options with a vertical bar (|). For example: {even|odd} The option set from which the user must select only one option

Courier font code or program output


Also need to note:
1, in the task Manager to increase the display of the PID field. You can see the process PID that takes up memory or the highest CPU
2, run iisapp-a at the command prompt. Note that the first run, will be prompted without JS support, click OK. And then you can run it again. So you can see the PID's corresponding application pool.
3, in IIS to see the application pool corresponding to the site, OK
Current 1/2 page 12 Next read the full text

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.