---
title: "Custom counters file view is out of memory"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/149154-custom-counters-file-view-is-out-of-memory"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Nianbig"
published: "2006-07-17T13:59:54.000Z"
updated: "2006-07-20T08:16:32.000Z"
replies: 3
views: 1957
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/149154-custom-counters-file-view-is-out-of-memory"
---

# Custom counters file view is out of memory

## #1 — Nianbig, 2006-07-17T13:59Z

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?

Permalänk: https://www.webforum.nu/p/149154

## #2 — Dino, 2006-07-17T16:11Z

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

Permalänk: https://www.webforum.nu/p/1842839

## #3 — Nianbig, 2006-07-19T14:46Z

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

Permalänk: https://www.webforum.nu/p/1843276

## #4 — CokeLight, 2006-07-20T08:16Z

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

 kanske ?

Permalänk: https://www.webforum.nu/p/1843413

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/149154-custom-counters-file-view-is-out-of-memory
