I should say that the program that I am trying to log information for is
written for version 1.1 of the .Net Framework.
Cheers
John
[quoted text, click to view] "RickyMcKay" wrote:
> Hi all
>
> I am having problem using perfmon to record to a log file the .Net CLR
> memory data. I am trying this on two machines (both XP SP2) and it doesn’t
> work on either, although with different results.
>
> Here is the process:
>
> *Launch Perfmon and select “Counter Logsâ€
> *Create a log to listen to the “: #Bytes in all Heaps\MyProgram†counter
> *Start Log
>
> Then on machine a)
>
> *The log starts but there is the following error in event log
>
> Error : .Net Runtime
> “Unable to open shim database version registry key - v2.0.50727.00000.â€
>
> *There is also a waning
>
> Information : SysmonLog
> “Log Heap Bytes has been started or restarted and is logging data to file
> C:\PerfLogs\Heap Bytes_000002.csv.â€
>
> *The log is created but the it only contains time data, no heap data
>
> Then on Machine B
>
> * The log doesn’t start and there are two entries in the event viewer
>
> Warning : SysMonLog
> “The service was unable to add the counter '\\UK0025084D\.NET CLR
> Memory(Alpha.Net)\# Bytes in all Heaps' to the Alpha Heap Test log or alert.
> This log or alert will continue, but data for that counter will not be
> collected. The error returned is: The specified object is not found on the
> system.â€
>
> *And ..
>
> Warning: SysMonLog
> “The service was unable to add any counters to the Alpha Heap Test log or
> alert. This log or alert will not be started.â€
>
> *And as is says no log is recorded.
>
> So in both cased I am unable to view the required data.
>
> I should say that just viewing the same data with PerfMon, rather than
> logging it to a file, works fine on both machines. There is also no problem
> recording non .Net data such as “Process\Privarte Bytesâ€.
>
> If anyone can help me out here I would be very grateful.
>
> Yours
>
> Ricky