Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory profiling a .NET 3.5 running process

Is there a tool for attaching to a running process which is in .NET 3.5 and take a snapshot?

I have looked at .NET Memory profiler, dotTrace memory and RedGate ANTS profiler and none of them seems to be able to do it.

.NET Memory profiler and ANTS can attach to only to .NET 4.0 processes and dotTrace memory does not seem to be able to attach to running processes.


UPDATE

OS is Windows Server 2003 (R2).

like image 814
Aliostad Avatar asked Oct 12 '12 07:10

Aliostad


People also ask

What is .NET memory Profiler?

. NET Memory Profiler is a powerful tool for finding memory leaks and optimizing the memory usage in programs written in C#, VB.NET or any other . NET Language.

What is memory profiling?

Specifically, the Memory Profiler can show you the following about object allocations: What types of objects were allocated and how much space they use. The stack trace of each allocation, including in which thread. When the objects were deallocated (only when using a device with Android 8.0 or higher).

Which profiling will analyze the memory usage of the application?

When the Diagnostic Tools window appears, choose the Memory Usage tab, and then choose Heap Profiling.


1 Answers

As you mentioned in your question, ANTS can use with .NET 4.0 or higher. What you have to do is forcing your application to use .NET 4, this does not required you to recompile the code. It just forced the application to use .NET 4 runtime.

like image 65
Ekk Avatar answered Oct 04 '22 16:10

Ekk