Skip to content

After upgrading from 2.4.5 to 3.1.2,A warning appears:Error initializing CPU & Memory perf counters #6393

Description

@HermesNew

This is the log:

warn: Orleans.Statistics.PerfCounterEnvironmentStatistics[100719]
Error initializing CPU & Memory perf counters - you need to repair Windows perf counter config on this machine with 'lodctr /r' command
System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #3': Cannot marshal a string by-value with the [Out] attribute.
at System.StubHelpers.StubHelpers.ThrowInteropParamException(Int32 resID, Int32 paramIdx)
at System.Management.ManagementPath.GetWbemPath(IWbemPath wbemPath)
at System.Management.ManagementPath.GetWbemPath()
at System.Management.ManagementPath.get_Path()
at System.Management.ManagementScope.set_prvpath(ManagementPath value)
at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
at System.Management.ManagementScope._Clone(ManagementScope scope)
at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
at Orleans.Statistics.PerfCounterEnvironmentStatistics.InitCpuMemoryCounters()

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues with no activity for the past 6 months

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions