After checking, it is found that w3wp.exe occupies 100% of the cpu, resulting in a huge occupation of port 80, and other operations cannot be performed.
In the task manager, we can see that w3wp.exeoccupies too many resources, so the w3wp.exe pid value is used.
The following is the process of searching for a website with errors: To locate the Website, you must associate the problematic process with the application pool of the website. First, set the view mode of the task manager and add the PID display:
Then run iisapp-a on the command line to see the correspondence between the PID and the application pool:
Go to iis and check the website corresponding to the application pool. If there is a problem with the website, you will find it. The rest is the problem in the website code.
Iisapp syntax
Iisapp [a/AppPoolName |/p AppPoolID]
Iisapp Parameters
/A AppPoolName
Specifies the name of a specific application pool. (Optional)
/P AppPoolID
Specify the application pool by ID. (Optional)
Iisapp comments
| • |
If no application pool name or ID is specified, the 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 the user password. |
| • |
Iisext. vbs performs the same operations available in the IIS manager. You can use any tool to manage IIS websites. |
| • |
The computer that sends the command must be running Windows XP or Windows Server 2003. 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 6.0 with Internet Information Service (IIS) 2003. |
Iisapp example
The following example shows how to use the iisapp in a specific situation.
Iisapp view all running applications
The following example shows 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
The Iisapp sends the following response information:
Connecting to the server... finished. W3WP.exe PID: 2232 AppPoolID: DefaultAppPool W3WP.exe PID: 2608 AppPoolID: MyAppPool view running applications by process ID
If you know the PID of a specific application, you can use the following command to check its status.
Iisapp/p 2608
The Iisapp sends the following response information:
Connecting to the server... finished. W3WP.exe PID: 2608 AppPoolID: MyAppPooliisapp format legend
| Format |
Meaning |
Italics |
REQUIRED INFORMATION |
Bold |
The user must type the elements exactly as shown |
Ellipsis (...) |
Parameters that can be repeated multiple times in the command line |
Between brackets ([]) |
Optional items |
Separate the options with vertical bars (|) between braces. Example: {even | odd} |
You must select only one option set. |
Courier font |
Code or program output |