IIS application Pool CPU Usage command Iisapp

Source: Internet
Author: User
Tags cpu usage

Some parameters of Iisapp

Iisapp-a PID

can find the corresponding domain name

Conversely iisapp-p domain to check the syntax of the PID
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.

When you use/s only,

To use the/U and/P command-line options. 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.

Description: W3wp.exe for IIS inside the application pool process, there are several processes will have several w3wp.exe, will find that a w3wp.exe process CPU and memory are very high terrible!

Well, let's see what we can do in practice, first of all, windows2003.

First open Windows Task Manager--Click to view---Select columns--Put the PID on the hook!!,,

You can see the PID options in the process.

Click to run-input cmd--input iisapp-a---very strange, here to show the PID, is to use pop-up windows appear one after another, do not know that others will not, and anyway, I was so, too bad for the view!!
Note, I hope people blog heard that the first run, will be prompted without JS support, click OK. then run it again. So you can see the PID corresponding application pool, this I have not tested!

So, first again cmd inside input: CD%systemroot%/system32
And then enter: CscrIPt.exe iisapp.vbs-a
The cmd window appears as follows:
W3WP.exe pid:2488 Apppoolid:apppool #26
W3WP.exe pid:3008 Apppoolid:apppool #2
W3WP.exe pid:4704 Apppoolid:apppool #15
W3WP.exe pid:6388 Apppoolid:apppool #19
W3WP.exe pid:6004 Apppoolid:apppool #8
Oddly, I still popped the window, but it doesn't affect the display! It's good to do it!

Task Manager to see the CPU and memory too high process of the PID value, you know which application pool is out of the question, you can find out what the specific site has a problem!!!

Related information:

The solution of Win2000

2000 What to do? Win2000 is not convenient, you need to set the site's application protection to high, the default is in.

Then open management tools-> component management, Component Services--computers--My Computer--COM + applications
When you choose to view the-> status View, you can see a display similar to the following:

Name Run PID
Iis-{www.zoubin.com//root} is 2544

===================================

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


Iisapp-a PID

can find the corresponding domain name

On the contrary iisapp-p domain check PID

--------------------Gorgeous split Line----------------
1. To limit the CPU usage of a site, the site must be set up as a stand-alone application pool, and a single site cannot be restricted by a shared application pool. IIS standalone application pool requires a separate process that consumes memory very much. The more independent pools there are, the more w3wp processes there are. For each site to be a separate application pool server, in general ordinary P43.0 2G memory of ordinary servers, recommended not more than 50 sites, preferably within 30, otherwise the server pressure is very large. In the configuration, I generally use a larger resource consumption of the site independent of a pool, general ordinary BBS or generate HTML system about 5 stations a pool. Common sites and some corporate sites share a pool.

2, according to WLMMC experience, in the case of server hardware, generally do not limit the use of site memory, so that the site can be guaranteed to run, the user will not appear out of line. You need to limit the maximum virtual memory of a station to less than 64M, or there may be some unknown error.

3, these are not the fundamental solution, its fundamental problem is that the Web site procedures have problems, to solve the fundamental problems to be checked from the program. According to the method mentioned at the beginning of this article, find the specific application pool, locate the Web site that uses this application pool, and solve the problems with the Web site program, such as The Dead loop.

4, in addition to W3wp.exe, in the call database for a large number of query operations, will also be a large amount of CPU resources, this is inevitable (database aspects of the statement and structural optimization is not covered in this article). Personally, as long as the CPU is not a long time to occupy 100%, generally around 75% are normal.

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.