Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Generational GC counters do not work with sgen.
How to reproduce:
Create perfmon.config file with the following content:
<?xml version='1.0' encoding='UTF-8'?>
<update interval="1000" />
<counter cat=".NET CLR Memory" name="# Bytes in all Heaps" />
<counter cat=".NET CLR Memory" name="Gen 0 heap size" />
<counter cat=".NET CLR Memory" name="Gen 1 heap size" />
<counter cat=".NET CLR Memory" name="Gen 2 heap size" />
run any mono program mono-sgen <your_program> get the pid of the running process, than run mperfmon
mperfmon --report=test --config=perfmon.config --count=1000000 <pid>
All .NET CLR Memory counters are 0.
If you run program without mono-sgen, counters "# Bytes in all Heaps" and "Gen 0 heap size" will show non-zero values
The same result will be if you use Perfomance counters in the code of running program (so this is not the issue of mperfmon)
Tested with mono 126.96.36.199 and mono 3.0.4
OS: Ubuntu 10.04/Ubuntu 12.04
We don't support the dotnet counters, they are implementation specific.