In the system iis6, the memory usage of w3wp.exe is often found to be insufficient to be released in time and the CPU usage remains high, resulting in slow server response. How can we find out which site has a problem?
First, create an application for each site Program Pool to find out which site the problem is located!
The next step is simple.
1. Add the PID field to the task manager. You can see the process PID with the highest memory usage or CPU usage!
2. Run iisapp-A at the command prompt. Note: during the first running, the system will prompt "this script cannot work with wscript". Click "OK". A dialog box will pop up, in English, prompting you to install a script, forget, it doesn't matter. Just click OK. Then run iisapp-A again. In this way, you can see the name of the application pool corresponding to the PID!
3. Check the website corresponding to the application pool in IIS! Then, the website will be troubleshooting!
(By the way, if a prompt such as error-no results appears after running, it means that your site has not been enabled or has not been accessed !)
The following describes the iisapp syntax in detail!
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. (Optional)
note
• If the application pool name or ID is not specified, iisapp lists all running applications.
• The/U and/p command line options are available 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