2

One of my app is reported to be using 5 gigs memory, when i took the dump of the process and analyze in windbg, i can see that the total committed size is 5 gigs as was reported, but then the total managed heap size is only 1.6 gigs.

Question: what could cause the commit size to be so big when heap size is only a few gigs, I could see the MEM_COMMIT size was almost all used by PAGE_READWRITE sections, could it be possibly memory fragmentation?

State Size MEM_COMMIT 5.653 Gb MEM_RESERVE 2.597 Gb

GC Heap Size: Size: 0x67cefd88 (1741618568) bytes.

2
  • 2
    Nobody can debug this for you with this little information. Bitmaps are always a good way to swallow a lot of unmanaged memory. Use a memory profiler. Feb 1, 2013 at 13:07
  • 1
    I understand, but can you correct me- if the committed memory size is bigger than the managed heap size, the extra memory is explained because of unmanaged memory or could it because of fragmentation? If the GC heap size is 1.6gigs, does it mean the rest of it is from unmanaged? Feb 2, 2013 at 2:19

1 Answer 1

2

Yes the commit size not accounted in managed heap could come from fragmentation in unmanaged heaps. The command !heap -s will display them in windbg. You may also use VMMap to quickly rule out other kind of memory allocated data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.