Tuesday, June 19, 2018

What is the scope of the Large Object Heap?

For those not familiar, the Large Object Heap (LOH) is a place in memory where .NET stores any objects larger than 85 000 bytes. For performance reasons, this is very rarely collected by the GC, and if you're doing a lot of stuff with large objects in memory, you can run into OutOfMemoryExceptions because of fragmentation in the LOH even though there's a lot of free system memory in general.

I've tried to figure this out from googling without any luck, and I was wondering what the "scope" of the LOH is. Is there only one LOH shared by all .NET processes or are there several LOHs? If so, is there one per process, one per thread, or something else?

What is the scope of the Large Object Heap? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team