471,071 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Custom Performance Counter errors in Vb.net Windows 2003

I created a new Performance Counter Category and added three new
counters.
Used InstallUtil.exe to create them on remote production server. I can
see
the custom counter category and counters.

I have a web site built with Commerce Server 2002 and .NET 1.1. I am
trying
to increment and/or decrement counter values for every session start
and
session end. But I get this exception thrown below. I have also
included the
VB.NET code snippet that throws this exception. Can anyone tell me how
to fix
this or where to get more information on what kind of error is this?

System.InvalidOperationException: Custom counters file view is out of
memory. at
System.Diagnostics.SharedPerformanceCounter.Create Category(Int32
categoryNameHashCode, String categoryName, Int32 counterNameHashCode,
String
counterName, Int32 instanceNameHashCode, String instanceName) at
System.Diagnostics.SharedPerformanceCounter.GetCou nter(String
categoryName,
String counterName, String instanceName) at
System.Diagnostics.SharedPerformanceCounter..ctor( String categoryName,
String
counterName, String instanceName) at
System.Diagnostics.PerformanceCounter.Initialize() at
System.Diagnostics.PerformanceCounter..ctor(String categoryName, String

counterName, String instanceName, Boolean readOnly) at
System.Diagnostics.PerformanceCounter..ctor(String categoryName, String

counterName, Boolean readOnly) at
Code Snippet Used in VB.NET

If PerformanceCounterCategory.Exists("CategoryName") Then
If PerformanceCounterCategory.CounterExists("ActiveUs ers",
"CategoryName") Then
Dim myCounter As PerformanceCounter = New
PerformanceCounter("CategoryName", "ActiveUsers", False)
myCounter.Increment()
myCounter.Close()
End If
End If

Thanks much
TechMate

Oct 4 '06 #1
0 1413

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Colin Brown | last post: by
7 posts views Thread by James | last post: by
17 posts views Thread by 57R4N63R | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.