[Mono-list] Running Mono Performance Counters on Linux

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Wed Jan 22 10:44:57 UTC 2014

Hello Mclyn,
some links that might be useful:

"You need to specify the instance name of the performance counter.
For process-based counters this is the pid of the process:
  counter.InstanceName = Process.GetCurrentProcess().Id.ToString();"

see also that thread:

"Currently the counters can only be read from the same process, there
is no setup to share across processes."


On 17 January 2014 10:08, Mclyn Dimaculangan
<mclyn.dimaculangan at sharinglabs.com> wrote:
> Hi Sir/Madam:
> Our team created a small tool that records performance (processor and memory
> usage) of certain processes related to our application.
> We created the tool using C# and we uses the PerformanceCounter built-in on
> Windows to monitor the processes running on  a virtual machine.
> Fortunately, the tool perfectly works when we ran it under Windows 7 and the
> remote machines are on Windows XP.
> However, the problem arises when we run the tool under a Linux/Mono
> environment. The tool did run also but, the performance counters are always
> returning zero results. Are performance counters supported on Linux/Mono? Or
> do we need to do extra steps (installing or configuring something on our
> Linux/Mono machine) to make it work?
> Any help will be very much appreciated.
> Thank you.
> Best Regards,
> Mclyn
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list