ASP.NET how to get Cache in KB used for this application ?
- by eugeneK
I need to know what is Cache size. I've read on this site solution for close problem but it doesn't solves mine.
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 ?