tagged [memory]
Stack and heap in C#
Stack and heap in C# > [What and where are the stack and heap](https://stackoverflow.com/questions/79923/what-and-where-are-the-stack-and-heap) There is a difference in C# between the heap and stack....
- Modified
- 24 Oct at 19:8
What causes memory fragmentation in .NET
What causes memory fragmentation in .NET I am using Red Gates ANTS memory profiler to debug a memory leak. It keeps warning me that: > Memory Fragmentation may be causing .NET to reserver too much fr...
- Modified
- 9 Mar at 03:12
Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss
Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss I was told I can add the `-XX:+HeapDumpOnOutOfMemoryError` parameter to my JVM start up options to my JBoss start up script to get a ...
- Modified
- 13 Jun at 21:25
How to find Java Heap Size and Memory Used (Linux)?
How to find Java Heap Size and Memory Used (Linux)? How can I check Heap Size (and Used Memory) of a Java Application on Linux through the command line? I have tried through jmap. But it gives info. a...
- Modified
- 20 Dec at 19:58
Since .NET has a garbage collector why do we need finalizers/destructors/dispose-pattern?
Since .NET has a garbage collector why do we need finalizers/destructors/dispose-pattern? If I understand correctly the .net runtime will always clean up after me. So if I create new objects and I sto...
- Modified
- 11 Feb at 20:52
c# : simulate memory leaks
c# : simulate memory leaks I would like to write the following code in c#. a) small console application that simulates memory leak. b) small console application that would invoke the above application...
- Modified
- 10 Jun at 23:23
How much memory does null pointer use?
How much memory does null pointer use? In C# if i use the following code How much memory is being allocated? does each object reference in the dictionary (dictionary[1], dictionary[2]) takes a pointer...
- Modified
- 4 Mar at 20:52
Where in memory are my variables stored in C?
Where in memory are my variables stored in C? By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static variables, constant data type...
- Modified
- 5 Jun at 11:35
.NET Max Memory Use 2GB even for x64 Assemblies
.NET Max Memory Use 2GB even for x64 Assemblies I've read ([http://blogs.msdn.com/joshwil/archive/2005/08/10/450202.aspx](http://blogs.msdn.com/joshwil/archive/2005/08/10/450202.aspx)) that the maximu...
- Modified
- 11 Jun at 16:9
Calculate size of Object in Java
Calculate size of Object in Java I want to record how much memory (in bytes, hopefully) an object takes up for a project (I'm comparing sizes of data structures) and it seems like there is no method t...
- Modified
- 22 Aug at 15:56
Disposing a StringBuilder object
Disposing a StringBuilder object How does one effectively dispose a `StringBuilder` object? If an user generates multiple reports in a single sitting, my app ends up using a huge amount of memory. I'v...
- Modified
- 25 Aug at 21:8
Memory address of variables in Java
Memory address of variables in Java Please take a look at the picture below. When we create an object in java with the `new` keyword, we are getting a memory address from the OS. When we write `out.pr...
- Modified
- 9 Mar at 13:45
Need C# code that will eat up system memory.
Need C# code that will eat up system memory. I need the opposite of good, optimized code. For testing purposes I need a simple program to eat up RAM. Preferably not all memory so that the OS is non-fu...
- Modified
- 12 Dec at 18:45
What is the cost of a function call?
What is the cost of a function call? Compared to - - - - in C++ on windows.
- Modified
- 18 Sep at 17:55
Why is Erlang crashing on large sequences?
Why is Erlang crashing on large sequences? I have just started learning Erlang and am trying out some Project Euler problems to get started. However, I seem to be able to do any operations on large se...
- Modified
- 22 Jan at 16:18
Heap space out of memory
Heap space out of memory My application currently consumes quite a lot of memory because it is running physics simulations. The issue is that consistently, at the 51st simulation, Java will throw an e...
- Modified
- 14 Oct at 15:44
Efficiently counting the number of lines of a text file. (200mb+)
Efficiently counting the number of lines of a text file. (200mb+) I have just found out that my script gives me a fatal error: That line is this: So I think it is having difficulty loading the file in...
- Modified
- 29 Jan at 14:26
How to get the amount of memory used by an application
How to get the amount of memory used by an application > [How to get memory available or used in C#](https://stackoverflow.com/questions/750574/how-to-get-memory-available-or-used-in-c-sharp) I want...
- Modified
- 23 May at 12:25
delete vs delete[] operators in C++
delete vs delete[] operators in C++ What is the difference between `delete` and `delete[]` operators in C++?
- Modified
- 23 Dec at 15:19
Memory allocation: Stack vs Heap?
Memory allocation: Stack vs Heap? I am getting confused with memory allocation basics between . As per the standard definition (things which everybody says), all will get allocated onto a and Types wi...
- Modified
- 27 Jun at 15:16
Find duplicate in array with a memory efficient approach
Find duplicate in array with a memory efficient approach `A` is an array of integers. All the values are between `0` to `A.Length-1` it means `0
- Modified
- 1 Sep at 04:58
How to get memory available or used in C#
How to get memory available or used in C# How can I get the available RAM or memory used by the application?
- Modified
- 8 Aug at 16:53
C# Events Memory Leak
C# Events Memory Leak When does these unsubscribed events memory leak occurs? Should I write destructor or implement IDisposable to unsubscribe an event?
- Modified
- 26 Aug at 20:15
very large string in memory
very large string in memory I am writing a program for formatting 100s of MB String data (nearing a gig) into xml == And I am required to return it as a response to an HTTP (GET) request . I am using ...
- Modified
- 17 May at 04:48
How does C# dynamically allocate memory for a List<T>?
How does C# dynamically allocate memory for a List? From [LukeH's](https://stackoverflow.com/users/55847/lukeh) answer to [what is the max limit of data into list in c#?](https://stackoverflow.com/que...
- Modified
- 20 Jun at 09:12