More detailed Iisapp use instance code to _win server

Source: Internet
Author: User
Iisapp-a PID

can find the corresponding domain name

On the contrary iisapp-p domain check PID

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

Back to the top of the page
View all running applications The following example displays all 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
Back to the top of the page
Format legend
Format meaning
Italic body
Information that the user must provide

Bold body
The elements that the user must type exactly as they appear

Ellipsis (...)
Parameters that can be used repeatedly on the command line

Between brackets ([])
Optional items

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

Courier Font
Code or program output

workaround for Iisapp command not available

First, the IISAPP environment

1, Windows 2003+iis 6.0
2,. NET environment

Second, the problem description

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 command cmd command line prompt. Note that the first run, will be prompted without JS support, click OK. And then you can run it again. This allows you to see the application pool that the PID corresponds to.
3, to IIS to see the application pool of the Web site, OK, to make the above memory or CPU restrictions, or check the program has no dead loop and so on.

But after I typed Iisapp, there was a problem and I didn't get the results I wanted.

That's how I solved it:

Iisapp is actually stored in the C:\windows \system32 directory of a VBS script, full name for Iisapp.vbs, if you and I, as well as prohibit the VBS default association program, then you need to manually to the directory, choose to open the way, and then select " Microsoft (R) Windows Based Script Host to perform, you can get a corresponding relationship between the PID and the application pool.

This allows you to hold the steps 1 and 2 above.

Iii. how to do in the IIS7

The new syntax is Appcmd.exe list Wp,iisapp no longer applies.

You can also do this:
Originally IIS7 has already integrated this function into the IIS, we can find it in this location, the computer name-->iis-->worker processes

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.