English 中文(简体)
2. 高页错/漏和切 fault错/充耳机
原标题:High page faults/sec and cache faults/sec in asp.net application

哪些东西可能给黑页的错误/亵渎和ache错/亵渎造成很高的价值?

反页/秘密几乎为零。 大约为零,有时只剩下300.。 变数约为10(超过时间)。

2-e秒的切碎/秘密为零,然后升至10 000至2秒。 这一切都是重复的。

页: 1

页面故障/漏损为25 000美元,偶尔为800 000美元。

在网络应用中,我何时开始研究?

最佳回答

The underlying problem was due to a lot of strings that the GC had to handle.

For example we had quite a lot of string conversions from the data layer datareader["column"].ToString()

替换

(string) datareader[“column”]. Tostring() and it help a Much.

Another problem was also that we were caching a lot of same strings in asp.net cache. We optimized this to only cache the reference to a list where the string is only stored once. We also optimized the caching so that we cache things that will be reused on all machines in the .net cache and things that will only be reused but not maybe on the same server this we cached serialized on another server, which therefore does not keep a reference and therefore will free up so GC can free up the memory.

问题回答

如果你谈论的是p.net页面故障,那么就看窗服务器记录,以及你可能必须确定什么。 你们应当看到LOT的错误。

If you are talking about MEMORY page faults and cache faults, then this could be normal behaviour. Memory page faults are common and are basically a signal in the hardware to shift data from virtual memory to physical memory. See http://en.wikipedia.org/wiki/Page_fault

The best way to lower Memory page faults is to increase the amount of physical RAM available in the machine.

You might also want to read: http://blogs.technet.com/b/askperf/archive/2008/06/10/the-basics-of-page-faults.aspx





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签