6,674 questions
0
votes
0
answers
84
views
Java heap space - even only 1.5Gb of 5.8 used
Why am i getting java.lang.OutOfMemoryError: Java heap space even when i have a plenty of memory.
So my simple code that create dataframe from input data, so no really data processing in spark - only ...
3
votes
1
answer
179
views
Memory Layout of C Programs: How is size of stack-heap space determinded?
I was reading an article on the Memory Layout of C Programs; https://www.geeksforgeeks.org/c/memory-layout-of-c-program/.
It mentioned, under "4. Stack Segment":
When the stack and heap ...
0
votes
2
answers
170
views
What is the difference between the Heap size and the Private Bytes size?
I have a .Net 4.7 application (WPF) whose memory consumption increases to 5.785 GB in private bytes, but the heap bytes are 4.260 GB, as shown in the figure taken by Process-Explorer:
If I run GC ...
0
votes
0
answers
42
views
NextJs project is causing FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
My nextjs 15 project is causing FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory.
Error details is as follows
2025-09-21T18:50:49: [905257:0x25f7a690] 48491672 ms: ...
2
votes
3
answers
267
views
How to detect whether a variable is allocated on the stack or the heap in C?
I’m working on a C project where I need to know if a pointer refers to memory allocated on the stack or the heap.
For example:
int x = 42; // stack variable
int *y = malloc(sizeof(...
0
votes
1
answer
46
views
How does a microcontroller keep track of heap free()?
In a microcontroller without any OS, how does the microcontroller keep track of where a malloc will point to in the heap?
char *x;
char *y;
char *z;
x=(char*)malloc(10);
y=(char*)malloc(10);
free(x);
...
1
vote
1
answer
183
views
How does C prevent heap growing indefinitely?
I’m investigating how C’s runtime memory allocator behaves in a long-running process that repeatedly:
allocates many blocks of variable size with malloc(),
finishes its work, and
calls free() on all ...
0
votes
1
answer
113
views
Is there a way to obtain an accurate description of the heap state?
I was fascinated by this video on visualization of Haskell heap, but unfortunately I haven't been able to use ghc-vis. My understanding is that it is too old now. (Feel free to suggest how to actually ...
0
votes
1
answer
104
views
Spring boot multi-module gradle project - integration tests throwing java.lang.outOfMemory error
I have a big Spring Boot aplication composed of multiple micro services using Gradle buildSrc. It contains a lot of tests seperated into seperate tasks (unit, integration, acceptance...).
These tests ...
1
vote
0
answers
98
views
Static DRAM Usage
I’ve read in the ESP32 documentation that:
There is 520 KB of available SRAM (320 KB of DRAM and 200 KB of IRAM) on the ESP32. However, due to a technical limitation, the maximum statically allocated ...
-1
votes
1
answer
153
views
Heap Corruption happening while delete[] for partially allocated array
I had a heap corruption error recently which I solved but cannot understand what is happening
I am allocating memory for a DBL array,
new DBL[length+1]; // where length = 1000;
Later I am writing ...
-1
votes
1
answer
141
views
Why is there a heap-after-use error here? I am trying to solve a Leetcode problem in C++. I don't see any dangling pointers or refs to freed memory
I am trying to solve LeetCode 2487: Remove Nodes From Linked List, and I’ve implemented a solution in C++ that first reverses the list, then removes nodes that have a greater value node to their left (...
0
votes
0
answers
106
views
Why does an in-scope object show as "dead" in Visual Studio when doing a heap snapshot?
I have this sample program:
Program.cs:
internal class Program
{
private static void Main(string[] args)
{
var testObject = new ZZTest();
Console.ReadLine();
Console....
1
vote
0
answers
93
views
How does Python represent slices in various cases?
Consider
l = [1, 2, 3, 4, 5]
print(l is l[:])
t = (1, 2, 3, 4, 5)
print(t is t[:])
print(t[1:] is t[1:])
print('aa'[1:] is 'aa'[1:])
print('aaa'[1:] is 'aaa'[1:])
The result is, somewhat surprisingly,...
0
votes
0
answers
59
views
Java stream row not getting cleared from heap space
OutOfMemoryError while streaming 20M+ rows in Spring Boot with Hibernate
Issue
I’m streaming 20M+ rows from my Content table using a Stream<Object[]> in Spring Boot with Hibernate. However, I ...