The danger of large object heap
There are two kinds of segments in CLR managed heap.
Small object heap is used for storing small object whose size is less than 8500 kb. When the GC collects dead object, it will compact the SOH by moving the objects.
Large object heap is used for string large object whose size is more than 8500 kb. After GC collects dead objects, it will not compact the LOH, because moving large object cost a lot.
So if you don’t take carefully to use large objects. It will cause a lot of memory fragments. This might cause the exception of OutOfMemoryException.
If you are interested in this topics, please read these post:
http://msdn.microsoft.com/en-
http://www.simple-talk.com/