large-object-heap Questions

7

Solved

I am wondering why I'm not able to allocate more that 1,000 MB of memory in my 32-bit .NET process. The following mini application throws an OutOfMemoryException after having allocated 1,000 MB. Wh...
Deguzman asked 10/7, 2009 at 13:36

6

Solved

I have an other active question HERE regarding some hopeless memory issues that possibly involve LOH Fragmentation among possibly other unknowns. What my question now is, what is the accepted way ...
Sandbank asked 8/3, 2010 at 15:15

1

Solved

I can't explain most of the memory used by a C# process. The total memory is 10 GB, but the total reachable and unreachable objects altogether total 2.5 GB. I wonder what these 7.5 GB could be? I'...
Lissner asked 17/11, 2018 at 10:22

3

Solved

I have a C# 4.0 application (single producer/single consumer) which transfers huge amount of data in chunks. Although there's no new memory allocation I run out of memory after a while. I profiled...
Zonda asked 17/4, 2011 at 20:54

4

Solved

I have to transfer large files between computers on via unreliable connections using WCF. Because I want to be able to resume the file and I don't want to be limited in my filesize by WCF, I am c...
Debouch asked 12/5, 2010 at 13:15

6

Solved

If you application is such that it has to do lot of allocation/de-allocation of large size objects (>85000 Bytes), its eventually will cause memory fragmentation and you application will throw an O...
Ingeingeberg asked 9/3, 2011 at 17:54

1

Solved

I'm pretty new to the memory problem. Hope you don't think this is a stupid question to ask. I know that memory larger than 85,000 Bytes would be put into LOH in C# i.e. Byte[] hugeByteCollectio...
Repudiate asked 5/9, 2015 at 16:32

1

Solved

I have several hundred instances of MyClass present in managed heap. Some of these are in large-object heap. Below is how various heap structure looks 0:000> !EEHeap -gc Number of GC Heaps: 1 ...
Labile asked 17/5, 2015 at 14:54

2

Solved

We have a Web Service using WebApi 2, .NET 4.5 on Server 2012. We were seeing occasional latency increases by 10-30ms with no good reason. We were able to track down the problematic piece of code t...
Doering asked 9/12, 2014 at 14:55

1

I am trying to upload the bytes of a large file (around 30MB) with the HTTPWebRequest to some server. The problem is that since the size of bytes is more than 85000, it is getting stored in the Lar...
Bomke asked 16/5, 2014 at 5:58

2

Recently with 4.5 .NET support, users can allocate more than 2 GB of memory for an object. In order to do that users can set the gcAllowVeryLargeObjects to true in the app.config file, and things w...
Conceivable asked 29/10, 2012 at 22:37

1

I'm working a system that has lists and dictionaries with over five million items where each item is typically a flat dto with up to 90 primitive properties. The collections are persisted to disk u...
Bellied asked 13/9, 2013 at 14:4

4

Solved

I have a windows console app that is supposed to run without restarts for days and months. The app retrieves "work" from an MSMQ and process it. There are 30 threads that process a work chunk simul...
Abutter asked 14/10, 2011 at 10:8

1

Solved

Our application continuously allocates arrays for large quantities of data (say tens to hundreds of megabytes) which live for a shortish amount of time before being discarded. Done naively this c...

1

Solved

In my Azure role running C# code inside a 64 bit process I want to download a ZIP file and unpack it as fast as possible. I figured I could do the following: create a MemoryStream instance, downloa...
Marisolmarissa asked 9/8, 2012 at 11:16

1

I am writing an analysis application in C# that has to deal with a lot of memory. I use ANTS Memory Profiler 7.4 for optimizing my memory management. While doing so, I realized that all of my doubl...
Gareri asked 3/8, 2012 at 7:15

2

Solved

In our application we have some data structures which amongst other things contain a chunked list of bytes (currently exposed as a List<byte[]>). We chunk bytes up because if we allow the byt...
Radke asked 3/7, 2012 at 18:33

1

Solved

I have a Java service that currently runs with a 14GB heap. I am keen to try out the -XX:+UseLargePages option to see how this might affect the performance of the system. I have configured the OS a...
Braille asked 27/6, 2012 at 16:15

3

Solved

I made a 64-bit WPF test app. With my app running and with Task Manager open, I watch my system memory usage. I see I'm using 2GB, and I have 6GB available. In my app, I click an Add button to add ...
Bickford asked 4/4, 2012 at 17:47

5

Solved

I have read about Generations and the Large Object Heap, but I still fail to understand what the significance (or benefit) is of having the Large Object Heap? What could have gone wrong (in terms o...
Lands asked 21/1, 2012 at 9:6

3

Solved

How can I run lots of RegExes (to find matches) in big strings without causing LOH fragmentation? It's .NET Framework 4.0 so I'm using StringBuilder so it's not in the LOH however as soon as I nee...
Insufficiency asked 5/11, 2011 at 13:45

3

Solved

I am following up from this question here The problem I have is that I have some large objects coming from an MSMQ mainly Strings. I have narrowed down my memory problems to these objects being cr...
Jem asked 17/10, 2011 at 7:25

1

Solved

I have a .NET 3.5 Application A function is running a million times It's doing search & replace & regex operations in 1MB+ strings (different sized strings) When I profile the applicati...
Castra asked 11/9, 2011 at 2:31

4

Solved

In my application there is a specific time when a number of large objects are all released at once. At that time I would like to do a garbage collection on specifically the large object heap (LOH)....
Corneous asked 23/9, 2009 at 22:23

3

Solved

Ok so I've been working on an ASP.NET project for a while and it seems I've made some bad design choices that are coming back to haunt me as the project keeps on getting bigger and bigger in terms ...
Unregenerate asked 19/5, 2011 at 14:10

© 2022 - 2024 — McMap. All rights reserved.