Performance Analysis Tool (PAL) PerfMon Templates Don’t Load in Win10

Using Performance Analysis Tool (http://pal.codeplex.com) on Windows 10 build 10130 I had exported a PerfMon template for Calculated Disk IOPS:

image

 

However when attempting to import into PerfMon on Windows 10 the Next and Finish buttons are disabled.

 

image

If we hit “Back” arrow, then forward again, the Finish button is enabled, but clicking it results in error:

When attempting to create the Data Collector Set the following system error occurred:
Not enough storage is available to complete this operation.

image

Using Rohitab API Monitor http://www.rohitab.com/apimonitor with Windows Application UI Development monitoring on, I attached ApiMonitor to mmc.exe process hosting PerfMon.msc just before I imported the template.

image

We find this function call:

#    Time of Day    Thread    Module    API    Return Value    Error    Duration
636128    2:00:46.910 PM    3    PLA.dll    LoadStringW ( 0x00007ffeb0bf0000, 10027, 0x000000000904b200, 1024 )    0    0 = The operation completed successfully.     0.0000226

image

 

Looking at MSDN documentation for LoadString we can see it returns 0 if the resource does not exist.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms647486(v=vs.85).aspx

Using a simple test script  based on the one here http://powershell.com/cs/media/p/11070.aspx

We can on Server 2008 R2 the values are there:

image

However on Windows 10 :

image

Dumping all resource strings in the DLL, we find in Windows 10, these strings are no longer present at all.

Sample script here:  https://onedrive.live.com/redir?resid=E1A3C870740A073D!28213&authkey=!AGecn7l_8oE95uU&ithint=file%2czip

So we changed the XML file to have a blank description.

From

image

to

image

Now it imports fine…

About chentiangemalc

specializes in end-user computing technologies. disclaimer 1) use at your own risk. test any solution in your environment. if you do not understand the impact/consequences of what you're doing please stop, and ask advice from somebody who does. 2) views are my own at the time of posting and do not necessarily represent my current view or the view of my employer and family members/relatives. 3) over the years Microsoft/Citrix/VMWare have given me a few free shirts, pens, paper notebooks/etc. despite these gifts i will try to remain unbiased.
This entry was posted in AppCompat, PerfMon, Windows 10 and tagged . Bookmark the permalink.

6 Responses to Performance Analysis Tool (PAL) PerfMon Templates Don’t Load in Win10

  1. robin says:

    i wonder how did you know Using Rohitab API Monitor with Windows Application UI Development ,

    and then found there is something wrong with LoadString API???

    all these guess is base on your experience or other else?

    • Yes for experience, but Windows UI will collect message box errors etc and is very useful to see an error message then step backwards. As for LoadString failures they are often suspicious, but you need to know the API in the first place to pick this up in API Monitor

      • When a program is displaying error messages or strange GUI behaviour I always use Windows Application UI tracing option (potentially in conjunction with other options) reviewing my other blog articles on API monitor there will be more examples of this

  2. Faye says:

    Hi
    I have the same issue on Windows Server 2016 (virtual machine).
    I need to modify the disk.xml file?
    Thanks
    Regards
    Faye

  3. Cesar Ushiro says:

    it’s 2023 e this tutorial save me!
    thanks dude

Leave a comment