Enemy of the State
Posted
26. rujan 2007 7:10
by
dadamec
The "growing" usage of Session and Cache is number one cause of server memory problems. We could call them "server-side" enemy number one. On the other side the user who is waiting for the page with a huge ViewState would soon turn into ex-user. We could call huge ViewState as "client-side" enemy number one. For the quick view and findings of those enemies-numero-uno we can use some simple advices from the blog posts.
For Session and Cache tracing:
Use WinDbg, take a memory dump and look at what your ASP.NET sessions doing in your memory space, spy on ones that take more and more space and do it on production server. Read the Debugging Script: Dumping out ASP.NET Session Contents post and use script provided by Tess Ferrandez. It's simple and usefull. And showing the truth, the whole truth and nothing but the truth.
For track ViewState size:
Using one simple JavaScript method activated from brosers URL field. Look at the script at How Big is Your ViewState?.