all groups > dotnet performance > august 2007 >
You're in the

dotnet performance

group:

y_data_to_a_file


y_data_to_a_file RickyMcKay
8/16/2007 5:44:20 PM
dotnet performance: 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
_Info RickyMcKay
8/17/2007 1:26:05 AM
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]
Re: Perfmon won't log .Net CLR Memory data to a file Adam Benson
8/20/2007 12:00:00 AM
Hi,

Don't know if this will help or not, but it's worth a try. I had a problem
with perfmon not logging .NET counters and this sorted it.

http://support.microsoft.com/kb/839506/en-us

HTH,

Adam
========

Re: Perfmon won't log .Net CLR Memory data to a file RickyMcKay
8/20/2007 3:40:01 AM
Hi Adam

Yes that was it, thanks so much. Will make my life a lot easier now.

Cheers

Ricky

[quoted text, click to view]
AddThis Social Bookmark Button