2012-01-10 1 views
0

바라건대이 질문에는 간단한 대답이 있습니다. 나는 간과하고 있습니다! IIS 웹 서버에 여러 사이트가 있습니다. Perfmon에서는 w3wp # 1, w3wp # 2 등으로 표시됩니다 ... 지정한 카운터/인스턴스를 사용하여 성능 카운터 데이터를 수집하는 Logman 스크립트를 작성하고 있으며 w3wp 작업자 프로세스 만 수집하려고합니다 .Windows에서 Perfmon/LogMan의 성능 카운터를 지정할 때 w3wp 인스턴스 만 얻는 방법?

나는 몇 가지 방법을 시도했지만 운이 :

\.NET CLR Memory(*w3wp*)\ 
    \.NET CLR Memory(w3wp#*)\ 
    \.NET CLR Memory(w3wp*)\ 

나는 문서 here에서 보지 않았다는데,이 와일드 카드을 지원하기 위해 주장처럼 보이지만 부분 없습니다과 일치합니다. 나는 그것을 어떻게 만들지 모르겠다. 내가 원하는 것을 성취 할 방법이 있습니까? 희망을 충분히 설명했다. 자세한 내용이 필요한 경우 알려주십시오.

감사합니다.

답변

0

응용 프로그램 풀 ID 인 PID를 찾고 해당 IIS 작업자 프로세스와 연결하는 사용자 지정 일괄 처리 스크립트가 생겼습니다. 거기에서 필자는 perfmon 구성 파일의 일반 자리 표시자를 수동으로 찾아서 바꾸어 특정 사이트에 대한 수집을 시작할 수 있습니다. 관심이있는 경우 몇 가지 세부 정보를 제공 할 수 있습니다.

+1

세부 정보를 제공해 주시겠습니까? 나는 비슷한 필요를 가지고있다. 고맙습니다. –

1

프로세스 ID를 추가하여 인스턴스를 표시하는 방법이 있습니다. ProcessId는 변경되지 않으므로 올바른 인스턴스를 결정하는 데 도움이됩니다. 이 게시물은 방법을 설명합니다 - Perfmon: Identifying processes by PID instead of instance. 링크에서

관련 부분 :

Making below registry change will display processes in the format of **ProcessName_PID** instead of **ProcessName#1**. 
Click Start, click Run, type regedit, and then click OK. 
Locate and then click the following registry subkey: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance 
On the Edit menu, click New, and then click DWORD Value. 
Right-click New Value #1, click Rename, and then type ProcessNameFormat to name the new value. 
Right-click ProcessNameFormat, and then click Modify. 
In the Data value box, type one of the following values, and then click OK: 

    1: Disables PID data. This value is the default value. 
    2: Enables PID data. 

Exit Registry Editor. 

Warning: Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. 

Important: If you enable this feature, you may be unable to monitor process-specific information by using third-party utilities or custom-made programs, and this functionality may change at any time in the future without notice. 

가 누군가를 도움이되기를 바랍니다.

+0

이 링크가 질문에 대답 할 수 있지만 여기에 대답의 핵심 부분을 포함시키고 참조 용 링크를 제공하는 것이 좋습니다. 링크 된 페이지가 변경되면 링크 전용 답변이 유효하지 않게 될 수 있습니다. – Luke

+0

@ 루크 - 의견에 감사드립니다. 링크의 관련 설명으로 답변을 업데이트했습니다. –

관련 문제