sql server - Not able to get SSAS specific performance counter categories with c# -



sql server - Not able to get SSAS specific performance counter categories with c# -

i want retrieve performance counters of ssas service. can see these counters, distributed multiple categories in perfmon. have checked registry key , found these counters. not able retrieve these counters c#.

here sample code snippet using- foreach (performancecountercategory pcc in performancecountercategory.getcategories()) { if (pcc.categoryname.startswith("msolap")) { console.writeline(pcc.categoryname); } } note

in perfmon can see counter categories as

msolap$marsh:connection msolap$marsh:locks msolap$marsh:memory etc.

is possible see 2 different list of counters @ 2 places i.e in perfmon & in c# (performancecountercategory class)

is there existing wmi class ssas can used retrieve these counters.

ssas on 64bit environment installs 64bit counter's library so, if run code 32bit application or using 32bit version of windows perfmon, can not access counters.

on 64-bit platform have both versions of windows perfmon.

32bit -> c:\windows\syswow64\perfmon.exe 64bit -> c:\windows\system32\perfmon.exe

the solution build application using x64 target platform.

c# sql-server wmi ssas performancecounter

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -