PerfMon.ps1

PerfMon.ps1 is a powershell script for creating Warewolf performance counters in Windows. This script is for Warewolf server admins to create all these counters for performance monitoring if they don’t exist for whatever reason. This script is for Windows only. This script can be run before Warewolf server starts and before any performance profiling/monitoring starts to prepare a fresh environment. It can also be run to re-create performance counters if they disappear from Windows for whatever reason.

Here are some tips for Warewolf server admins to get the most out of it:

  • Download PerfMon.zip and extract PerfMon.ps1 from the “Article Attachments” below.
  • This script is also located in “C:\Program Files (x86)\Warewolf\Server” after installing or “C:\Server” in containers for versions 2.8.11+0 and above.
  • The script takes no parameters, just run to create the performance counters.
  • Verify the category was created:
    • Get-Counter -ListSet “Warewolf”
  • Verify the instances of all 6 performance counters:
    • Get-Counter -Counter “\Warewolf(*)\*”

Note: Overriding CMD in your Dockerfile can break Windows performance counters in your container. This is because, when using warewolfserver/warewolfserver:2.8.13+, the CMD must include PerfMon.ps1 like this:
CMD ["powershell", "-Command", "Start-Job -ScriptBlock { & 'C:\\Server\\PerfMon.ps1' }; .\\Server\\StartAsService.ps1"]

FacebookTwitterLinkedInGoogle+Email
Updated on June 30, 2025

Article Attachments

Was this article helpful?

Related Articles

Enjoying Warewolf?

Write a review on G2 Crowd
Stars