Performance Monitor, Typeperf and PAL 

Tags: SharePoint, Server, Windows, Windows Registry, Perfomance, Troubleshooting

To dump all of the performance counter instances on a system:

Typeperf.exe -qx > c:\perfcounters.txt
 
To collect the perfomance data on all of the counter instances on a system for 30 minutes collecting data every 15 seconds to standard Perfomance Monitor format:

Typeperf.exe -f BIN -cf c:\perfcounters.txt -o c:\perf.blg -si 15 -sc 120
 
To schedule the Typeperf to collect based on and event in the Event Log:
EventTriggers.exe /create /tr "SP Collect Performance" /l application /eid 4133 /tk "Typeperf.exe -f BIN -cf c:\perfcounters.txt -o c:\perf.blg -si 15 -sc 120"
 
* Command Arguments:
eventtriggers[.exe] /create [/s Computer [/u Domain\User [/p Password]]] /tr TriggerName [/l [APPLICATION] [SYSTEM] [SECURITY] ["DNS Server"] [LOG] [DirectoryLogName] [*] ] {[/eid ID]|[/t {ERROR|INFORMATION|WARNING|SUCCESSAUDIT|FAILUREAUDIT}]|[/so Source]} [/d Description] /tk TaskName [/ru {[Domain\]User | "System"} [/rp Password]]
 
* More Info:
 
To fix the w3wp process instances to show the PID:

unlodctr.exe .NetFramework

c:\Windows\Microsoft.Net\Framework\v2.0.50727\lodctr.exe corperfmonsymbols.ini

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance\ProcessNameFormat DWORD 2
 
* More Info:
 
PAL download location:
www.codeplex.com/PAL
 
Posted by Chad on 12-Nov-09
0 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 

Links to this post

Failed to render control: The operation being requested was not performed because the user has not been authenticated. (Exception from HRESULT: 0x800704DC)
Name:
URL:
Email:
Comments: