WorkerProcess.GetExecutingRequests 메서드2
현재 작업자 프로세스에 할당된 요청을 가져옵니다.
구문
objWorkerProcess.GetExecutingRequests(RequestArray);
objWorkerProcess.GetExecutingRequests RequestArray
매개 변수
이름 | 정의 |
---|---|
RequestArray |
HttpRequest 개체를 저장할 배열입니다. |
반환 값
이 메서드는 값을 반환하지 않습니다.
설명
이 메서드는 빈 배열을 개체로 OUT
채우는 매개 변수로 HttpRequest
사용합니다.
예제
다음 예제에서는 각 작업자 프로세스에 대해 현재 큐에 대기 중인 요청에 대한 정보를 가져옵니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the worker processes.
Set oW3WPs = oWebAdmin.InstancesOf("WorkerProcess")
For Each oW3WP In oW3WPs
' Place the requests queued for a process into an array.
oW3WP.GetExecutingRequests arrReqs
' Show the number of queued requests.
If IsNull(arrReqs) Then
WScript.Echo "No currently executing requests."
Else
' Display the number of requests.
WScript.Echo "Number of currently executing requests: " & _
UBound(arrReqs) + 1
WScript.Echo
' List the properties of each request.
For Each oRequest In arrReqs
WScript.Echo "Module: " & "[" & oRequest.CurrentModule & "]"
WScript.Echo "Verb:" & "[" & oRequest.Verb & "]"
WScript.Echo "HostName: " & "[" & oRequest.HostName & "]"
WScript.Echo "Url: " & "[" & oRequest.Url & "]"
WScript.Echo
Next
End If
Next
요구 사항
형식 | Description |
---|---|
클라이언트 | - Windows Vista의 IIS 7.0 - Windows 7의 IIS 7.5 - Windows 8의 IIS 8.0 - WINDOWS 10 IIS 10.0 |
서버 | - Windows Server 2008의 IIS 7.0 - Windows Server 2008 R2의 IIS 7.5 - Windows Server 2012의 IIS 8.0 - Windows Server 2012 R2의 IIS 8.5 - WINDOWS SERVER 2016 IIS 10.0 |
제품 | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF 파일 | WebAdministration.mof |