Nick
Nick

Reputation: 13

How to identify memory consuming requests in ASP.Net

The IIS http log tells me the time taken, so it's easy to identify long-running requests. But how can I identify the memory consumption of each request thread?

From within the process code I can easily get the size of the workingset for the entire process, but not of a request thread itself.

IIS 6 + Framework 3.5

Nick

Upvotes: 0

Views: 127

Answers (2)

Jonas Elfström
Jonas Elfström

Reputation: 31468

I'm not sure that I'm reading you correctly but the threads are reused so there's no such thing as one thread per request. There's still hope, for instance you could set up a performance monitor log. Tess Ferrandez has quite a few articles on .NET memory debugging.

Or if you really want to dive in:

  1. adplus -hang -pn w3wp.exe -quiet
  2. Open the dump file in windbg
  3. !address -summary

Upvotes: 0

tvanfosson
tvanfosson

Reputation: 532765

You could use a memory profiler such as the ANTS Memory Profiler from RedGate (14-free trial).

Upvotes: 1

Related Questions