This question is locked. New answers and comments are not allowed.
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
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
0
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:
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
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:
- Try profiling the application on a 64bit operation system. This will give your application and JustTrace as well more memory to operate with.
- 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).
- 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
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
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
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
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