Wednesday, January 11, 2023

Steps to collect Perfmon logs

 Collect Perfmon logs

 In order to troubleshoot the issue we need to capture a Performance Monitor log.

·    Click on Start

·         In the start/search/run box, type  "CMD.exe" w/o the quotation marks and then press Enter.

·         Copy and paste the following commands into the command prompt window:

 

Logman.exe create counter PerfLog-Long -o "c:\perflogs\\%computername%_PerfLog-Long.blg" -f bincirc -v mmddhhmm -max 500 -c "\LogicalDisk(*)\*" "\Memory\*" "\Cache\*" "\Network Interface(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" "\Processor(*)\*" "\Processor Information(*)\*" "\Process(*)\*" "\Redirector\*" "\Server\*" "\System\*" "\Server Work Queues(*)\*" "\Terminal Services\*" -si 00:00:30

 

Logman.exe create counter PerfLog-Short -o "c:\perflogs\\%computername%_PerfLog-Short.blg" -f bincirc -v mmddhhmm -max 500 -c "\LogicalDisk(*)\*" "\Memory\*" "\Cache\*" "\Network Interface(*)\*" "\Paging File(*)\*" "\PhysicalDisk(*)\*" "\Processor(*)\*" "\Processor Information(*)\*" "\Process(*)\*" "\Redirector\*" "\Server\*" "\System\*" "\Server Work Queues(*)\*" "\Terminal Services\*" -si 00:00:01

 

·        Start the logs with the following commands:

Logman.exe start PerfLog-Long

Logman.exe start PerfLog-Short

 

·        Please stop the performance logs with the following commands:

Logman.exe stop PerfLog-Long

Logman.exe stop PerfLog-Short

 

Share the logs with me for analysis.: (C:\perflogs)

Note: Please make sure that we keep this tool running till the time the issue is reproduced and then upload the logs. These performance logs will need to be started again if the machine is rebooted as they do not automatically restart on boot.

No comments:

Post a Comment

How to troubleshoot window updates and OS related issues.

The article here addresses the issue how to get rid of a specific KB (Update) and shows some more DISM commands to fix broken Windows online...