473,231 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 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
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
0 1522

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Colin Brown | last post by:
Python2.3.2: Running the following receiver and sender code in separate windows under Win2K does not work properly (missed & very delayed transmissions). Under Redhat Linux 9 (where I will be using...
by: Val Mazur (MVP) | last post by:
Hi guys, My application creates custom performance counter and it works fine. Now I am creating multiple instances of the same counter and increment value for each instance. This part work fine...
by: David Wagner | last post by:
Hi, I am looking at wanting to configure and manage some Performance Monitor logs through a C# application. Specifically, I want to be able to define and configure named performance log...
by: Ivan | last post by:
I have the SystemMonitor ActiveX control on a form and I try to register a custom performance counter. I expect that after registering the counter with the OS, the user would be able to add it...
by: Dominic | last post by:
Hi all, We've just migrated to IIS 6.0 / Windows Server 2003. We are now experiencing some stability problem what we did not experience in IIS 5.0 / Windows 2000 Server. Our ASP.NET application...
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the...
by: 57R4N63R | last post by:
I'm currently building a website for one of the client. There has been few errors here and there, but just recently the problem is getting worse. Basically the symptoms is that when the user try...
by: LP | last post by:
Hi, I am trying to run my webservice which creates a performance counetr and writes to it on Windows 2003, where the following error is returned. It runs fine on Windows 2000. Error: ...
by: Robert Strickland | last post by:
I have a .Net web service (written for 1.1 Framework using C#) running on Windows 2003 with all latest patches. To help monitor the service, the code creates several performance counters. One...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.