21

Running VS2010's .NET Memory Allocation analysis takes ages to complete.

The program itself ran for about 3 minutes and generated 35GB of memory allocations. The profiler's output file is about 28GB. The report analysis process took over three hours (on a dual Xeon with 8GB RAM) to complete.

This has happened to me every time I've run the memory profiler.
Is this your experience also with this tool?
Is there anything to do to speed up this process?

Thanks!

Nadeem_MK
  • 7,533
  • 7
  • 50
  • 61
Haggai
  • 705
  • 1
  • 7
  • 15
  • 2
    Having the same problem in Visual Studio 2012 RTM as well. – treaschf Sep 14 '12 at 08:54
  • It's very slow on VS 2010 Ultimate for me. – Joe Phillips Dec 03 '12 at 23:35
  • I haven't tried running it myself but have you tried finding the bottleneck(s) with Process Explorer? – Zian Choy Dec 14 '12 at 04:52
  • Dont a solution for your problem , but what we do is use Regate Memory Profiler instead for managed components. – Ganesh R. Jan 20 '13 at 06:05
  • 1
    I don't know about any solutions to speed up analysis, but after you will open it - you can save report as a VSPS file, so next time when you will need to open it - it will be much faster. – outcoldman Apr 01 '13 at 22:22
  • That's just the way it is -- churning through 28GB of flat files just takes some time. RedGate is faster, but the UI is unusable. Wait, you ARE doing this on a SSD, right? – Stu Jun 23 '13 at 19:54
  • Noticed the same thing with our main app under VS2010 and VS2012. I could not justify letting the system spend half the day analyzing a performance report when I had development to do. (I once let it run overnight analyzing less than 1/2 hr session and it still was not done the next morning.) The "cpu sampling" was the only built in "profiling" tool that seemed practical enough for normal use. (Would love to hear of any special tricks to get around that.) – Wonderbird Oct 30 '13 at 20:00

2 Answers2

1

Try increasing the amount of RAM available to VS2010 by using the following link, you can also use it in VS 2012 and it really does makes a difference to performance (especially build times on large projects). Hopefully this will also help you with memory allocation analysis:

http://forthosewhomatters.blogspot.co.uk/2009/09/largeaddressaware-and-visual-studio.html

twoleggedhorse
  • 4,938
  • 4
  • 23
  • 38
0

I had the same issue but did not really find a solution for it. If you need the profiler on a regular basis it might be worth looking at commercial ones. Here is a list of other ones. I think all of them are available as trial version.

There are also many other posts on StackOverflow.

Good Luck, Stephan

Community
  • 1
  • 1
Weiwu
  • 41
  • 3