Memory usage of Web service

  • Thread starter Thread starter Water Cooler v2
  • Start date Start date
W

Water Cooler v2

I have a .NET 2.0 Web service running on IIS 5.1. I need to get the
memory foot print of the Web service.

I was thinking along the lines of doing either:

a) GC.GetTotalMemory(); or
b) System.Diagnostics.Process.GetCurrentProcess.VirtualMemorySize();

but I know none of these are accurate as both (a) and (b) might return
the size of the IIS process memory.

Is there a way to get the size of the memory occupied just by the Web
service?
 
Would perfmon be able to give you this information? At a very least you
should be able to take the spike in memory usage that occurs when the service
is called and compare it to the usage before and after.
 
Back
Top