1

I took a process dump of an application pool process, w3wp.exe, and when I try to open it in VS 2019 & VS 2017 I get:

The managed heap cannot be analyzed while garbage collection is in progress

screenshot of error

What does this mean? When I took the process dump the GC was running and I can't analyze it w/ VS? If so, how do I ensure I take a process dump when the GC isn't running?

spottedmahn
  • 14,823
  • 13
  • 108
  • 178

1 Answers1

0

There's a similar question here which solved it by triggering the dump based on performance counters, using SysInternals ProcDump tool.

That question was about the original WinDbg / sos.dll debugging toolset rather than the VS integrated tools, but probably still applies.

In that toolset this case just created a warning about potentially inaccurate results.

There is a bit of a learning curve but you may be able to get what you want from your current dump file using the WinDbg / sos.dll tools.

Peter Wishart
  • 11,600
  • 1
  • 26
  • 45