Does anyone know how to find out (programatically) how much bytes are currently used by HttpRuntime.Cache?
+1
A:
It's not programatically, but you can use CLR Profiler from Microsoft. Start profiler, from File menu choose Set Parameters and enter location of web and port (/port:55000 /path:"c:..."). Then you can start web server with "Start App" and by choosing WebDev.WebServer.exe.
When web is started (it can feel slow when browsing pages!), and few pages opened (to fill cache or session), you can click on “Show Heap Now” and then click on "filter" and enter something like "system.web.caching" or "system.web.sessionstate".
Hrvoje
2009-06-09 13:42:44
I've found tutorials that use the CLR Profiler.From my Vista machine I'm getting an windows api error 1060, complaining about a service that does not exist with the specified name...Even CLR profiling a server and specifing the w3svc name manually doesn't work (it succeeds in starting and restarting, but it waits for the CLR runtime indefinately)
Jaap
2009-06-11 14:22:17