473,396 Members | 1,816 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,396 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 1529

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

Similar topics

0
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...
0
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...
2
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...
0
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...
1
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...
7
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...
17
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...
1
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: ...
1
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.