1 z 34

Troubleshooting & Analyzing Windows with Perfmon.exe

2 z 34

Perfmon.exe

2

3 z 34

Performance Measurements

  • 5 major hardware subsystems impacted by the operating systems and applications
    • CPU
    • Memory
    • Storage
    • Network
    • GPU

3

4 z 34

Default analysis of your system

4

5 z 34

Perfmon reports and files

  • C:\PerfLogs

5

6 z 34

Real-time, logging or debugging (event trace)

6

7 z 34

Windows Performance Counters

  • collecting various kinds of system data such as processor, memory, and disk usage statistics. 
  • System administrators use performance counters to monitor for performance or behavior problems. 
  • Software developers use performance counters to inspect the resource usage of their components.
  • Hardware engineers use it to confirm or troubleshoot hardware behavior.

7

8 z 34

Warning use them sparingly

  • Use a few as possible to avoid server impact
  • they are not designed to be collected more than once per second

8

9 z 34

Perfmon:  Two critical components

  • Choosing the correct counters to monitor
  • Understanding the threshold values for your server/desktop/application/hardware configuration

9

10 z 34

When using Perfmon use technical references

  • When selecting counters and threshold values for analysis or troubleshooting:  
    • Use Microsoft documentation 
    • Use Developer documentation
    • Use Hardware documentation
    • Vendor documentation
    • Use third party if necessary

10

11 z 34

Proper sizing of a virtual machine memory

11

  • Microsoft's recommendation for analyzing a virtual machine's proper memory allocation.

12 z 34

Perfmon can collect 2 types of data

  • Performance counters are measurements of system state or activity. 
    • They can be included in the operating system or can be part of individual applications.
  • Event trace data (think of this as debug) is collected from trace providers, which are components of the operating system or of individual applications that report actions or events. 

12

13 z 34

Performance counters

  • Performance counters:
    • are simple numeric metrics that give you a high-level summary of how a particular system is behaving
      • example, % Processor Time is a performance counter that tells you how much of the processor's time is being used to execute user-mode code.
    • Performance counters are generally used to monitor system health and to diagnose specific performance issues
    • NOTE:  they don't give you much detail as to why a particular issue is happening

13

14 z 34

Performance Counters are used by:

  • Perfmon.exe
  • Task Manager
  • Process Explorer
  • Process Monitor
  • Process Hacker
  • Resource Monitor (resmon.exe)
  • Log manager (logman.exe)
  • Typeperf.exe
  • 3-party software

14

15 z 34

Event Tracing for Windows (ETW)

  • ETW is a tracing system built into Windows. 
  • Essentially, any component (e.g. a user application, or even the Windows kernel itself) can send out diagnostic trace information about specific events that occur that the component cares about. 
    • For example, the kernel sends out ETW events when a process starts and stops
    • when an image (e.g. DLL) is loaded and unloaded
    • when a thread is created or destroyed
    • when a thread does a context switch.
  • ETW is meant to be fast and should not materially impact the system's performance when logging is not enabled.

15

16 z 34

Event Trace files: *.etl

16

17 z 34

*.etl files on my video editor

17

18 z 34

Better way:

IT professionals should use two tools for recording trace events and displaying and analyzing.

18

19 z 34

Effective tool for recording trace events

19

20 z 34

Windows Performance Analyzer

  • WPA allows a more effective way to analyze trace events

20

21 z 34

Performance Monitoring

How many performance counters are built into Windows 10?

21

22 z 34

3840 counters

22

23 z 34

Why hasn't Microsoft invested in a better PM?

23

24 z 34

15-30 major vendors provide this service

  • Microsoft's Operations Manager
  • Solarwinds
  • Paessler
  • Atera
  • Sematext
  • Site24x7

24

25 z 34

Low budget/free tools to help the poor?

  • GitHub
  • Free tool allowing analysis of performance counters using industry threshold data 

25

26 z 34

https://github.com/clinthuffman/PAL

26

  • Thresholds files for most of the major Microsoft products such as IIS, MOSS, SQL Server, BizTalk, Exchange, and Active Directory.
  • An easy to use GUI interface which makes creating batch files for the PAL.ps1 script.
  • A GUI editor for creating or editing your own threshold files.
  • Creates an HTML based report for ease of copy/pasting into other applications.
  • Analyzes performance counter logs for thresholds using thresholds that change their criteria based on the computer's role or hardware specs.

27 z 34

27

28 z 34

ETW is a part of WMI

28

29 z 34

SOCIAL MEDIA

CREDITS

  • Social media logos and “Tech Savvy Productions” teaser created by The 11th Hour: https://www.youtube.com/user/The11thH...

29

30 z 34

Become a member

30

31 z 34

Check out our website: �https://www.techsavvyproductions.com

31

32 z 34

Want an easy and free way to support this Channel?Please Subscribe!�80% of the individuals who watch our content do not subscribe.�

32

33 z 34

We have subtitles for in many languages:

We provide subtitles on our videos into the many languages:

33

34 z 34

�A BIG THANK YOU TO ALL OF OUR VIEWERS AND SUBSCRIBERS!�

34