Crash Getting a Snapshot

4 posts, 0 answers
  1. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 22 Aug 2013 Link to this post

    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



     
  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 23 Aug 2013 Link to this post

    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.
  3. DevCraft banner
  4. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 26 Aug 2013 Link to this post

    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
  5. Stefan
    Admin
    Stefan avatar
    198 posts

    Posted 28 Aug 2013 Link to this post

    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.
Back to Top