RE: %processor time for specific application
From: WenJun Zhang[msft] (v-wzhang_at_online.microsoft.com)
Date: 05/07/04
- Next message: Fei: "Redirection of the serverA to server B (Naming)"
- Previous message: anonymous_at_discussions.microsoft.com: "RE: IIS + win2k3 DC"
- In reply to: JB Fields: "%processor time for specific application"
- Next in thread: WenJun Zhang[msft]: "RE: %processor time for specific application"
- Reply: WenJun Zhang[msft]: "RE: %processor time for specific application"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Fei: "Redirection of the serverA to server B (Naming)"
- Previous message: anonymous_at_discussions.microsoft.com: "RE: IIS + win2k3 DC"
- In reply to: JB Fields: "%processor time for specific application"
- Next in thread: WenJun Zhang[msft]: "RE: %processor time for specific application"
- Reply: WenJun Zhang[msft]: "RE: %processor time for specific application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|