467,864 Members | 1,896 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,864 developers. It's quick & easy.

Custom Performance Counter errors in Vb.net Windows 2003

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

I have a web site built with Commerce Server 2002 and .NET 1.1. I am
to increment and/or decrement counter values for every session start
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,
counterName, Int32 instanceNameHashCode, String instanceName) at
System.Diagnostics.SharedPerformanceCounter.GetCou nter(String
String counterName, String instanceName) at
System.Diagnostics.SharedPerformanceCounter..ctor( String categoryName,
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)
End If
End If

Thanks much

Oct 4 '06 #1
  • viewed: 1308

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 jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.