oshi: 2 warnings from SLF4J: Disabling further attempts to query PhysicalDisk + WmiQueryHandler COM exception: Invalid Class
The following warnings are logged using SLF4J:
- OSHI-core 5.8.5
- JNA (jna and jna-platform) version 5.10.0
- Windows 11, ver = Microsoft Windows [Version 10.0.22000.348]
- 1 NVMe SSD, 1 HDD, 1 SSD
- Java 11 Update 3 Eclipse Temurin, 64 bit
<oshi.util.platform.windows.PerfCounterWildcardQuery> [Worker-8: Executing the early startup extensions,5,Equinox Event Admin] Disabling further attempts to query PhysicalDisk.
at oshi.util.platform.windows.PerfCounterWildcardQuery.queryInstancesAndValues(PerfCounterWildcardQuery.java:92)
at oshi.driver.windows.perfmon.PhysicalDisk.queryDiskCounters(PhysicalDisk.java:79)
at oshi.hardware.platform.windows.WindowsHWDiskStore.queryReadWriteStats(WindowsHWDiskStore.java:243)
at oshi.hardware.platform.windows.WindowsHWDiskStore.getDisks(WindowsHWDiskStore.java:180)
at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getDiskStores(WindowsHardwareAbstractionLayer.java:76)
<oshi.util.platform.windows.WmiQueryHandler> [Thread-31,3,main] COM exception: Invalid Class Win32_PerfRawData_PerfDisk_PhysicalDisk WHERE NOT Name=“_Total”
at oshi.util.platform.windows.WmiQueryHandler.queryWMI(WmiQueryHandler.java:166)
at oshi.util.platform.windows.WmiQueryHandler.queryWMI(WmiQueryHandler.java:127)
at oshi.util.platform.windows.PerfCounterWildcardQuery.queryInstancesAndValuesFromWMI(PerfCounterWildcardQuery.java:194)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (16 by maintainers)
Found the Windows docs that explain the 4, it apparently disables 64-bit counters.
https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/manually-rebuild-performance-counters
Honestly I think just adding this URL to the log message for any performance counter failures may be a good idea.
For me it’s fine - we can wait. Better to have a good new version around next week on Maven Central.