This is a migrated thread and some comments may be shown as answers.

Crash Getting a Snapshot

3 Answers 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kim
Top achievements
Rank 1
Kim asked on 22 Aug 2013, 10:41 PM
Please see attached screenshot

We have a C# app that has some memory leaks and we were trying to use justtrace. i have never been able to get it to work when i click on get Snapshot. The attached error occurs.

Thanks



 

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 23 Aug 2013, 01:01 PM
Hi Kim,

Thank you for the exception reports.

As I can see you are running JustTrace on a 32bit operating system. This is a common cause for such errors (the FileNotFoundException and the IOException - Not enough storage available to process a command).  However, there are several things you can try in order to prevent this:
  1. Try profiling the application on a 64bit operation system. This will give your application and JustTrace as well more memory to operate with.
  2. Try getting the snapshot earlier. This way, there could still be enough memory for its creation. Note, the required memory for a snapshot creation during a memory attach is twice (or more) as bigger as the profiled application memory usage (in the moment of getting the snapshot).
  3. Try profiling your application with Next Application. With it, JustTrace will attach its memory profiler and won`t be counting on CDB. This will significantly reduce the memory required for taking a snapshot. Further, the information provided inside that snapshot will be more detailed. Note, you will need to restart your application in order to use Next Application.

I hope one of the above suggestions works for you. Let me know if I can assist you further.

P.S. I am closing the exception reports as we can continue the conversation here.

Regards,
Kaloyan
Telerik
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums, or our JustTrace or JustMock portals.
0
Kim
Top achievements
Rank 1
answered on 26 Aug 2013, 03:21 PM
Hi,

I don't have a x64 machine I can test with. Does justtrace not support 32bit OS? 

The error occurs even if i do the snap shot immediately after starting just trace so that's not the problem. 

-Kim
0
Stefan
Telerik team
answered on 28 Aug 2013, 08:47 AM
Hello Kim,

JustTrace supports 32-bit Windows, but is much more constrained in terms of available memory address space. It appears from your exception report that you're using "Attach to process" with the memory profiler, which is based on using a memory debugger. I suggest you try option number 3. from the previous reply in this thread. This will bypass the memory debugger and get you closer to taking a snapshot.

Still, taking a snapshot of a process that has N bytes of managed memory, requires about 2-5x N of additional memory for processing. For example, if your leaking process is taking 1GB of managed memory, then JustTrace will need about 2-5GB of free memory to process the snapshot. Obviously this is nearly impossible on a 32-bit operating system, hence the "out-of-memory" errors you see.

Regards,
Stefan
Telerik
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums, or our JustTrace or JustMock portals.
Tags
General Discussions
Asked by
Kim
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Kim
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or