views:

34

answers:

1

I need to know what is Cache size. I've read solution on this site for more or less similar question but it partly serves me. As i know i can get values from PerMon, here is function

public static string getCacheSize()
{
    PerformanceCounter pc = new PerformanceCounter("ASP.NET Applications", "Cache % Machine Memory Limit Used","__TOTAL__", true); 
    return string.Format("{0:0.00}%", pc.NextValue()); 
}

1.it gives me percents when i need KB and there is no item closest to this one in PerfMon 2.it shows 70.5% used while all memory usage is about 50%

any help ?

+1  A: 

Hi Eugene, this Question might help you with an answer.

Russ C
this is the partly solution i've mentioned in post, still stuck where it ended in there...
eugeneK