Questions tagged [large-object-heap]

The Large Object Heap (LOH) is a special type of managed heap for the automatic memory management in .NET Framework.

The Large Object Heap (LOH) is intended for storing large objects. The large objects is an object, which size is 85000 bytes or more. These features are most significant, when working with large objects and LOH:

  • Large objects are always considered part of generation 2.
  • Large objects are never compacted.
92 questions
0
votes
1 answer

.net application causing memory fragmentation

I understand that only way a .NET application ( that does not use any unamanged code) can cause memory fragmentation is by large object heap. Are there any ways of detecting if your application is fragmenting memory and anyways of avoiding it?
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
0
votes
1 answer

C# Memory Issues

I've got an application that: Targets C# 6 Targets .net 4.5.2 Is a Windows Forms application Builds in AnyCPU Mode beacuse it... Utilizes old 32 bit libraries that cannot be upgraded to 64 bit, unmanaged memory Uses DevExpress, a third party…
Mohgeroth
  • 1,617
  • 4
  • 32
  • 47
0
votes
1 answer

LOH benchmarking using benchmarkdotnet

So I'm doing some benchmark to compare the deserialisation of a big JSON file from a String or a Stream using the BenchMarkDotNet library. I'd like to see the state of the LOH specifically but I can't find how to do it. Currently I'm having the…
Cholesterol
  • 177
  • 2
  • 10
0
votes
1 answer

Java Error occurred during initialization of VM Could not reserve enough space for object heap

Here's my code: import java.util.LinkedList; import java.util.Scanner; import java.util.InputMismatchException; import java.util.*; class Customer { public String lastName; public String firstName; public Customer() { …
Rekt
  • 359
  • 2
  • 18
0
votes
0 answers

Java - Large array advice on how to break it down

I hope you're doing good. I was making the code for a program that will be dealing with a large number of array elements. For example, array A[] will have all the words that start with a letter "a". Now, if i put all in one class the program can't…
0
votes
2 answers

Issues parsing a 1GB json file using JSON.NET

I have gotten an application where the input has been scaled up from 50K location records to 1.1 Million location records. This has caused serious issues as the entire file was previously de-serialized into a single object. The size of the object…
polydegmon
  • 575
  • 1
  • 7
  • 17
0
votes
3 answers

How do I know an array of structures was allocated in the Large Object Heap (LOH) in .NET?

After some experimenation using CLR Profiler, I found that: Node[,] n = new Node[100,23]; //'84,028 bytes, is not placed in LOH Node[,] n = new Node[100,24]; //'86,428 bytes, is public struct Node { public int Value; public…
AMissico
  • 21,470
  • 7
  • 78
  • 106
0
votes
3 answers

Objects added to the Large Object Heap

I'm trying to debug the reason for high CPU usage in our legacy website, and from looking at some analysis in DebugDiag, I suspect that the amount of objects on the LOH, and subsequent GC collections, could be a reason. In one .dbg file we have…
Steve
  • 2,950
  • 3
  • 21
  • 32
0
votes
1 answer

Why is Process.PagedMemorySize64 > 0 when there is no paging memory on the machine?

I am runing .net code on a machine with the page file size set to zero. My application logs System.Diagnostics.Process.PagedMemorySize64 and is showing a value > 0. How can this be? The documentation for PagedMemorySize64 reads: The value…
Charley Rathkopf
  • 4,720
  • 7
  • 38
  • 57
0
votes
1 answer

Why are our IIS 6 Application pools taking up ten times the memory being consumed by the CLR

Our IIS 6.0 application pools take up on first load of a page 155Mb of memory. On subsequent refreshing of the same page the App pool memory consumed goes up to approx 245Mb. Its a webforms application and uses Entity Framework and DevExpress…
0
votes
1 answer

Avoiding the LOH when reading a binary

This question is a follow up to Efficient way to transfer many binary files into SQL Server database I originally asked why using File.ReadAllBytes was causing rapid memory use and it was concluded using that method put the data on the large object…
user1838662
  • 503
  • 7
  • 17
0
votes
1 answer

StringHTTPMessageConverter loading all charsets causing java heap jump

We are having a portlet application which uses Spring 3.1.0.Final and deployed on WAS 6.1. We have multiple portlets using Spring MVC in past. This is the first portlet with Spring 3. I am using annotations and autowiring in most of the places in…
0
votes
1 answer

Java ActiveMQ sending large Object throwing EOFException

Getting java.io.EOFException while sending a large java object using AciveMQ. Below is the large object that I am trying to send class TestDataBean implements Serializable { private String testName = "TestName"; private String testDesc =…
Aryan
  • 1,767
  • 2
  • 22
  • 39
0
votes
1 answer

How bad in LOH fragmentation on 64-bit systems

Large object heap fragmentation is an obvious issue on 32 bit systems since the address space is relatively small and therefore you can run out of it and hit an OutOfMemoryException quite "quickly" Since 64-bit address space is a lot larger, running…
SpeksETC
  • 1,003
  • 2
  • 7
  • 13
-1
votes
1 answer

Managing LOH in vb.net

I have an vb.net application I distribute to my analysts – We assign perhaps 100 200MB images at a time. The app sequentially opens the large jpg image using GDI+ and the image is placed in the LOH. I scan each pixel looking for data. - when done I…
Rfrank
  • 51
  • 5