2

How can we measure the serialization overhead of custom classes in ASP .NET session when using an out of process session state provider - in this case Velocity distributed cache.

During load testing we see a lot of CPU consumption happening on the web servers, I was interested in getting some metrics related to the serialization aspect among other things before looking at optimizing the kind of objects we are stuffing in session.

Any help, pointers?

JB King
  • 11,860
  • 4
  • 38
  • 49
agp
  • 363
  • 5
  • 13
  • Have you tried profiling your application? – sisve Dec 28 '10 at 16:00
  • Your load testing tools should provide this type of information. What are you using to do it? Also, don't abuse session by storing a bunch of objects in it. That just doesn't scale. – NotMe Dec 28 '10 at 16:46
  • Profiling will show what's happening inside my application. Session serialization is an infra task which happens before the application code executes and hence would be difficult to see in the profiler I guess. – agp Dec 29 '10 at 05:42
  • Load testing tool is load runner, it's shows all statistics related to request/response times, but not sure it will give me serialization metrics. – agp Dec 29 '10 at 05:44
  • Profiling will show everything your process does, including non-user-code. – sisve Dec 29 '10 at 13:14

0 Answers0