PC Review


Reply
Thread Tools Rate Thread

Custom counters file view is out of memory

 
 
=?Utf-8?B?QWxleC5QZWRlcnNlbg==?=
Guest
Posts: n/a
 
      24th Nov 2004
Hi,

For some reason this exception is thrown by our application, when attempting
to retrieve a performance counter:

ExceptionName: System.InvalidOperationException
exceptionMessage: Custom counters file view is out of memory.
site: System.Diagnostics.SharedPerformanceCounterInt32 CreateCategory(Int32,
System.String, Int32, System.String, Int32, System.String)System,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
stackTrace: at
System.Diagnostics.SharedPerformanceCounter.CreateCategory(Int32
categoryNameHashCode, String categoryName, Int32 counterNameHashCode, String
counterName, Int32 instanceNameHashCode, String instanceName)
at System.Diagnostics.SharedPerformanceCounter.GetCounter(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)

Searching for a solution revealed that others have seen this error but
nobody knows whats happening. A fix has been offered:

"I did a brief investigation I am wondering if you are using lots of
performance counters.
I found that there is a .config setting that controls the max fileView
memory size. It is

<configuration>
<system.diagnostics>
<performanceCounters filemappingsize="524288" />
</system.diagnostics>
</configuration>

(see the filemappingsize attribute in the performanceCounters element)"

But id much rather fix the problem instead of doing the above in a live
environment hoping for the best.

In hopes of an answer...
Regards Alex


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
memory counters gone =?Utf-8?B?TWFuaQ==?= Windows XP General 8 2nd Apr 2007 05:10 AM
Custom counters file view is out of memory =?Utf-8?B?S2Vu?= Microsoft Dot NET Framework 0 26th Sep 2005 11:08 PM
Custom counters file view is out of memory. john.livermore@inginix.com Microsoft Dot NET Framework 0 15th Apr 2005 12:20 AM
Custom counters Pipe Microsoft Frontpage 4 9th Oct 2004 02:54 AM
Memory counters CJaM Microsoft Windows 2000 2 5th Apr 2004 12:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 PM.