473,597 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance counters problem on non-english Windows


I need to create a dialog like the 'Add Counters' dialog box in
perfmon. I'm using the System.Diagnost ics namespace class in .NET and I've
managed to do it.

The problem arises when I'm using such dialog box on a non-English Windows
OS (I'm currently testing on Spanish WinXP Professional).

I'm noticing that on non-English Windows OS there are some categories whose
counters are being displayed in English and not in the non-English language.
These particular categories are those whose category name in English is
exactly equal to that of the non-English OS language.
For e.g: if "Processor" category is translated "Procesador " in Spanish then
counters are returned in Spanish
but if "ASP.NET" category remains "ASP.NET" in Spanish, then the
counters are returned in English.
I've searched the registry
(HKLM\Software\ Microsoft\WinNT \XurrentVersion \PerfLib) and found that on the
non-English Windows these counters can be found in the non-english language.
Therefore the problem lies in the .NET functions that I'm using to retrieve
the counters for a particular performance category.

I'm using PerformanceCoun terCategory.Get Instances() and
PerformanceCoun terCategory.Get Counters() to obtain the instances and
counters related to a performance category. I've also tried using
PerformanceCoun terCategory.Rea dCategory() (with the
InstanceDataCol lectionCollecti on) but remained the same problem.

Anyone can help?

Thanks in advance,
Nov 16 '05 #1
0 2050

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

Similar topics

by: rob_c | last post by:
Hi, I've been working with the EIF for a few days now. One of the default event sinks provided is the WMI. I've played around a bit and can send events to the WMI. My question here centers on performance counters and the WMI. Is there any way to increase a performance counter in the WMI through the EIF or am I barking up the wrong tree (I know that .NET has other classes which allow you to manipulate performance counters)?
by: Mark | last post by:
Hi... We're looking at moving an ASP app from IIS 5 to IIS 6. In general things seem to be working okay, but there are some oddities around the edges. One of those unanticipated changes has to do with the new process model and the option to have more than one worker process per web instance. We found that each worker process has its own Application() state and anything your app puts there/uses gets a new copy for every worker...
by: Marc Melancon | last post by:
Will the next release of SQL Server 2000 64bit sp provide performance counter? MarcM
by: Don | last post by:
Hello! I am trying to write some code to access performance counters on a remote machine. Ideally, I would like to add a machine to a tree control (like the "Servers" view in the .NET IDE) and prompt the user to put in a username/password for that machine. I'm not too familiar with the security model involved here, and was hoping someone either has come across this before or could point me in the right direction. Thanks in advance!
by: Brian Newtz | last post by:
Hi everyone, I posted this question to a yahoo group a while back but no one was able to figure out my problem... I really want to get this fixed, so I'll repost the message here: I'm trying to look at performance counter data (any category, any counter) via an aspx page that I'm writing, but almost all of the samples come back as zero.
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 counters all show 0. In addition, ASP.NET Applications does not show any of the ASP.NET instances that are running on the computer. The other counters for example % processor time work fine. The problem machine is a test server running Win2003. ...
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0 than in .Net environment, under VS 2005 Beta 2. Does anyone have any idea whether this will be addressed in the final release? Thanks, Tomasz
by: newscorrespondent | last post by:
Some performance counters are PerformanceCounterCategoryType.MultiInstance. Many of these occur once for each running app. If for example myapp has three at the same time myapp shows up three times as myapp#1, myapp#2, myapp#3. How can myapp look at performance counters and know which instance is it's own counters? Is there a way to get a processid or something from the process counter data? Thanks.
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot be performed. Stack Trace: at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library)
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot be performed. Stack Trace: at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library)
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.