Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# memory profile

Tags:

c#

memory

profile

I'm trying to perform some memory profiling on an applications that is accumulating large amounts of memory.

I have found this tool (CLRProfiler): http://msdn.microsoft.com/en-us/library/ff650691.aspx

But it does not seem to be working. When I run it, it sits forever at "Waiting for application to start common language runtime".

Any other suggestions on how I can profile memory in C#?

like image 551
Kyle Avatar asked May 26 '11 19:05

Kyle


3 Answers

Check out Redgate:

http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/

like image 160
Shane Castle Avatar answered Sep 29 '22 22:09

Shane Castle


If you work with W7 or Vista, start it as administrator (File->ContextMenu->Run as Administrator). As already said by others, also check out to use the correct version.

like image 44
HCL Avatar answered Sep 29 '22 23:09

HCL


You are probably using the wrong version!

The new (v4.0) version is at http://www.microsoft.com/en-us/download/details.aspx?id=16273, which is working well for me (and it's free).

like image 32
JCH2k Avatar answered Sep 30 '22 00:09

JCH2k