Jim_Taylor_3rd
13 years agoOccasional Contributor
Writing Perfmon Counters to a csv file
I am currently writing the time and memory usage to a csv file using aqfile and the following code statement:
As I am monitoring for memory issues caused by improper garbage collection, I would also like to display the .Net CLR memory counters that are available in Perfmon. In particulary, the size of the Gen 2 heap would be most useful -
I have not been able to find a way to access this counter so that I can write it to the same csv file. I have tried running as administrator and still am not able to find a way to get at this counter.
Any suggestions?
aqDateTime.Time() & "," & Sys.Process("MfgSys").MemUsage & vbCrLf
As I am monitoring for memory issues caused by improper garbage collection, I would also like to display the .Net CLR memory counters that are available in Perfmon. In particulary, the size of the Gen 2 heap would be most useful -
\.net CLR Memory (_Global_)\Gen 2 heap size
I have not been able to find a way to access this counter so that I can write it to the same csv file. I have tried running as administrator and still am not able to find a way to get at this counter.
Any suggestions?