RE: %processor time for specific application

From: WenJun Zhang[msft] (v-wzhang_at_online.microsoft.com)
Date: 05/07/04


Date: Fri, 07 May 2004 06:36:34 GMT

Hi,

Yes, using different process identifiers for this purpose is a bit
inconvenient and may cause unexpected permission problems. Please
note IIS6 has a little built-in feature to manager processor usage
for per application pool - AppPool properties->Performance
tab->Enable CPU monitoring.

If the task must be performed manually, open a DOS prompt and run
script - iisapp.vbs in Windows\System32 directory. This lists all the
running w3wp.exe worker processes' PID and corresponding AppPools.
You can refer to the info to check every process's processor time in
Performance monitor.

However, due to a worker process can be recycled or terminated(idle
for 20 mins by default) at any time, the PIDs are changed. Therefoe
it's difficult to perform a consistent monitor by using Perfmon. We
need take advantage of additonal application like WSRM:

Windows System Resource Manager¡ªFast Facts
http://www.microsoft.com/windowsserver2003/techinfo/overview/wsrmfastf
acts.mspx
"
Scenarios and Benefits
When running multiple applications on a single server, WSRM enables
you to allocate portions of a computer's resources to each
application. This addresses many situations, which include:
..
Administering resource usage of Internet Information Server (IIS) 6.0
application pools on a server; for example, where one server hosts
multiple Web sites.
.."

Here is Windows System Resource Manager Technology Center:
http://www.microsoft.com/windowsserver2003/technologies/management/wsr
m/default.mspx

WSRM has the 'Process-matching criteria' feature. A sample w3wp.exe's
command line is:

d:\windows\system32\inetsrv\w3wp.exe -a
\\.\pipe\iisipm4cbdca02-4805-429f-ad7c-f0313a856cbe -t 20 -ap
"DefaultAppPool"

It includes the application name that can be used to determine a
w3wp.exe is corresponding to which AppPool. See the related section
in WSRM help:
"
Managing multiple processes created by the same .exe
Some applications, such as Internet Information Services (IIS)
version 6.0, start multiple processes from the same .exe file. To
distinguish among individual or groups of processes that are started
from the same .exe, you must develop specific process-matching
criteria, following the examples using IIS 6.0 below.

To select an IIS 6.0 Web site into a process-matching criterion
requires the following information:

The name of the .exe of the process that handles IIS 6.0 requests,
which is always w3wp.exe.
The name of the application pool that corresponds to the Web site
being served by each w3wp.exe process. This name is specified by the
user, but for the purposes of this example, it will be called
example.

You can now create a process-matching criterion that includes the
following match string:

@.*w3wp\.exe.*example.*

This string will match any process whose full command-line string
matches:
anythingw3wp.exeanythingexampleanything

which will match all processes related to the Web site example.
"

I hope this helps and please don't hesitate to let me know if you
have any further question.
Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security



Relevant Pages

  • Re: Exchange Virtual Directory 404 Not Found
    ... XCCC: IIS Lockdown and URLscan Configurations in an Exchange Environmenthttp://support.microsoft.com/?id=309508 ... re-create the Exchange-related virtual directories in Internet Services ... visit the following Microsoft Web site: ... Custom installation option to install only Metabase Explorer 1.6. ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote Webworkplace and OWA 3 times log in
    ... I rest the IIS - Start RUN - type iisreset ... the IIS Default Web Site application. ... Windows account for anonymous access to the Administrator account I renter ... I understand that users can logon to RWW and OWA ...
    (microsoft.public.windows.server.sbs)
  • [NT] Cumulative Patch for Internet Information Service (28 May 2003)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... security patches released for IIS 4.0 since Windows NT 4.0 Service Pack ... An attacker would need the ability to upload a Server-side ... * A denial of service vulnerability that results because IIS 5.0 and 5.1 ...
    (Securiteam)
  • RE: Remote Web Workplace & Outlook
    ... IIS 6.0 compression corruption causes access violations ... compressed copy of the affected files on the SBS server: ... Troubleshooting OWA when the contents frame displays "Loading" ... Default Web Site and from the Exchange virtual directories. ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange Virtual Directory 404 Not Found
    ... IIS Lockdown and URLscan Configurations in an Exchange Environment ... HTTP 401 or 404 error messages when you access OWA implicitly or explicitly ... re-create the Exchange-related virtual directories in Internet Services ... visit the following Microsoft Web site: ...
    (microsoft.public.windows.server.sbs)