webForumDet fria alternativet

Custom counters file view is out of memory

.NET

3 svar · 1 953 visningar · startad av Nianbig

Medlem sedan feb. 200616 inlägg
Frågan#1

Hej

Jag får ett väldigt mystiskt fel när jag försöker köra en ASP.NET (skriven i C#):
System.InvalidOperationException: Custom counters file view is out of memory

Jag använder cachening i .aspx-mallen... kan det ha något med det att göra?

Medlem sedan sep. 20011 914 inlägg
#2

Möjlig lösning.

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)

The filemapping size in the above example is set to the default value. It
can be in the range of 32768 to 33554432.
You might want to try increasing the size and adding into your
machine.config

Medlem sedan feb. 200616 inlägg
#3

I vilken fil lägger jag detta?
Gjorde ingen skillnad när jag la det i "Web.config".

Medlem sedan juni 2000504 inlägg
#4

You might want to try increasing the size and adding into your
machine.config

kanske ?

259 ms totalt · 4 externa anrop · v20260731065814-full.86ec41c2
128 ms — deklarationer (db)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)
121 ms — ändringar (db)