Skip to main content
Filter by
Sorted by
Tagged with
6 votes
1 answer
234 views

I had written a method to update a HashMap, provided an int id value (ex: client id) as key, the method would check if the key is available in the map, if not it would create an entry and associate a ...
Gautham M's user avatar
  • 5,182
3 votes
1 answer
189 views

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 ...
Supreeto's user avatar
  • 339
0 votes
2 answers
172 views

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 ...
james james's user avatar
0 votes
0 answers
45 views

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: ...
Ajith's user avatar
  • 2,678
2 votes
3 answers
278 views

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(...
Pawan Bhatta's user avatar
0 votes
1 answer
49 views

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); ...
hal's user avatar
  • 1
1 vote
1 answer
185 views

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 ...
bla-ce's user avatar
  • 13
0 votes
1 answer
113 views

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 ...
Enlico's user avatar
  • 30.3k
0 votes
1 answer
105 views

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 ...
Patrick Badran's user avatar
1 vote
0 answers
102 views

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 ...
Kathryn Silalahi's user avatar
-1 votes
1 answer
154 views

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 ...
Soumya's user avatar
  • 393
-1 votes
1 answer
142 views

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 (...
notSukuna's user avatar
0 votes
0 answers
107 views

I have this sample program: Program.cs: internal class Program { private static void Main(string[] args) { var testObject = new ZZTest(); Console.ReadLine(); Console....
qscott86's user avatar
  • 323
1 vote
0 answers
97 views

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,...
ByteEater's user avatar
  • 1,201
0 votes
0 answers
59 views

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 ...
shubh gupta's user avatar
-5 votes
1 answer
85 views

XDocument xDoc1 = XDocument.Load(XMLFilepath1, LoadOptions.PreserveWhitespace); Please suggect any options other GC.Collect() for clearing large objects immediately. We tried below options- GC....
sree's user avatar
  • 1
0 votes
1 answer
61 views

I'm m debugging a .Net process for a possible memory leak. The command !address -summary shows: 0:000> !address -summary --- Usage Summary ---------------- RgnCount ----------- Total Size -------- ...
Phiber's user avatar
  • 1,103
-1 votes
1 answer
38 views

I am using HSQL with java, HSQL database file size is 3 GB then it need 10 GB heap memory and approx. 5-7 minute database boot time while creating datasource. Need suggestions to bring down heap ...
ashu's user avatar
  • 1
0 votes
0 answers
122 views

A simple keyboard extension app showing continuous heap memory allocation each time open the keyboard on screen. For easier understanding see the image below... Here is the KeyboardViewController: ...
Asim Roy's user avatar
  • 10.3k
0 votes
1 answer
215 views

I am learning about heap overflow attacks, but I am encountering a problem. Based on the knowledge I found online and my own guesses, I believe that a heap overflow attack involves overwriting ...
ho tian's user avatar
  • 35
-1 votes
1 answer
54 views

I have a microservice that generates multiple PDF Documents and saves to database. For generating each document, from the main service class, I call multiple document specific service class methods by ...
Rey Rajesh's user avatar
1 vote
1 answer
147 views

I want to understand if arr here is in stack or heap. Since obj is dynamically allocated is the arr in heap? What if i do not have obj2, if i just allocate obj dynamically in main? #include <...
Rich Gg's user avatar
  • 59
1 vote
1 answer
218 views

Background to the Application: We have a Java WebApp on a Tomcat Server for multiple users. We have 30+ customers servers running. Problem: On one particular customer we run into a strange phenomenon ...
berni's user avatar
  • 11
3 votes
1 answer
84 views

I want to observe when the default process heap gets created, i.e. have a breakpoint and get the callstack of the creation. This has no practical background. I just want to understand the Windows ...
Thomas Weller's user avatar
1 vote
0 answers
55 views

I am trying to implement a simple memory allocator. Essentially trying to copy the function malloc() and free(void *ptr) in C. I initialize a region of memory using sbrk(). In my custom malloc ...
Kamrul Hassan's user avatar
2 votes
1 answer
188 views

The undocumented (I can't find a MSDN reference) FrontEndHeapDebugOptions Registry key has two flags: Bit 2 (0x04) for disabling the Segment Heap, thus forcing NT Heap Bit 3 (0x08) for enabling the ...
Thomas Weller's user avatar
0 votes
0 answers
30 views

What are the best practices and tools for performing a memory profile on a React.js frontend and a Strapi backend application? How can I identify memory leaks, optimize memory usage, and ensure ...
Sumanth G S's user avatar
0 votes
2 answers
84 views

I am working on an ecommerce application that is multilayered using angular for its frontend. When I serve the application using ng serve the application is served to my local host but later on it ...
Charles Mwangi's user avatar
0 votes
0 answers
44 views

I have an app written in C++ (Windows) which also used some third party libraries. In the app there are many news/deletes together with mallocs and frees. Now I met with a bug that some data on the ...
Nekomiya Kasane's user avatar
1 vote
0 answers
221 views

I have a springboot microservice (updated to spring-boot-starter-parent 3.4.0) that is run on a schedule every 5 minutes that checks a database table (oracle jdbc driver 19.20.0.0) for new task ...
petula's user avatar
  • 149
0 votes
0 answers
343 views

I am learning how to program a Raspberry PicoW in C++ and I have two question about flash: How much of the flash is my programme taking up? With AtMega programming, the compiler would display this ...
Richard's user avatar
  • 401
2 votes
2 answers
84 views

Consider a struct like this: struct ExampleStruct { public int ID; public List<ExampleStruct> children; } Would the following line of code create an object on the heap? ExampleStruct ...
Amos Egel's user avatar
  • 1,240
1 vote
1 answer
97 views

If I'm correct, both printf should show that the variables have the same address, because in the meantime nothing has been allocated to the heap, but it shows different addresses. #include <stdio.h&...
João's user avatar
  • 17
0 votes
1 answer
89 views

I have a class which have certain instance variables. I am getting random crashes when i run my application. Thinking memory corruption, I ran the application under valgrind, and I am able to narrow ...
Abhishek Sagar's user avatar
48 votes
3 answers
6k views

Consider this empty program: int main() { return 0; } If I compile it with C++ with g++ main.cpp && strace ./a.out, and analyze the output with strace, I observed that the last lines of the ...
ABu's user avatar
  • 12.5k
2 votes
4 answers
488 views

I have some hierarchy (through composition, not inheritance) of classes: Child and Parent. Child can have multiple parents, also Parent could do the same. I want the Child class lifetime being managed ...
Supreme Machine's user avatar
7 votes
1 answer
85 views

I'm writing an application with two threads: a UI thread and compute thread. I want them to share a vector of buffers with type T. Since it's 90% reading, I chose to go with an ArcSwap for ...
Jason Eveleth's user avatar
0 votes
0 answers
196 views

I'm encountering a java.lang.OutOfMemoryError when trying to resize large images using the Thumbnailator Dependency in Springboot. My heap size is limited to -Xms256m -Xmx512m, and I believe the issue ...
Chathuran D's user avatar
  • 2,436
1 vote
1 answer
118 views

We're upgrading a Drools Fusion application from 6.4.0 to 8.44.2. The application is managing just 1 single long running KieSession in stream mode (config.setOption(EventProcessingOption.STREAM)). ...
jammann's user avatar
  • 722
1 vote
4 answers
170 views

If each process has its own address space and it is much larger than the physical memory of the computer, why can’t we just place the stack at the end of this address space and the heap at the ...
omnit's user avatar
  • 13
1 vote
0 answers
228 views

I have generated angular app for the test purpose, created Page1 and Page2 components. Page2Component TypeScript: import { Component, OnDestroy } from '@angular/core'; @Component({ selector: 'app-...
GIorgi's user avatar
  • 31
0 votes
0 answers
100 views

During Kafka's work, we noticed that the Garbage Collector was freeing up less and less memory. memory leak We are using a kafka cluster with three brokers with the following settings: POD_NAME: ...
Roman's user avatar
  • 1
3 votes
1 answer
141 views

For this application, -Xmx64m is allocated (the same can be seen from the chart from VisualVM). However, it is not clear what exactly these areas mean in the context of memory allocation to this ...
rozerro's user avatar
  • 7,376
0 votes
1 answer
158 views

I want to write a function that will read a text file, and return its lines as an array of strings for further processing. To this end, I am trying to get my head around correctly handling an N-length ...
tk-noodle's user avatar
  • 402
0 votes
1 answer
80 views

I'm encountering severe issues when attempting to open JMX files larger than 2MB or with large payloads in JMeter. The application becomes unresponsive and utilizes a high amount of CPU. When I do ...
Akriti's user avatar
  • 11
0 votes
1 answer
48 views

We have a C++ multi-threaded application with shared libraries, running on linux x86_64 (debian-12, kernel 6.1.xx) and on a raspberry pi 5 ( arm64, debian-12, kernel 6.3.xx ). If I lock at /proc/$pid/...
Bernd Benner's user avatar
0 votes
1 answer
78 views

In Unix operating systems how are sizes between low and high address of the following picture chosen? I’m assuming this has something to do with Virtual Memory management and allocation of pages. I’m ...
notaorb's user avatar
  • 2,220
0 votes
1 answer
92 views

In Chapter 5.2 of the 3rd edition of A Tour of C++, Bjarne write this about concrete types. What I don't understand is what the flexibility is. Is he referring to the use of pointers in concrete ...
heretoinfinity's user avatar
0 votes
0 answers
74 views

I created a simple code just to test something is happening with my app on docker. Im just creating 1gb of bytes to test the memory usage on my app dockerized, and what i realized is that the memory ...
Diego García's user avatar
1 vote
0 answers
50 views

I have a spring boot webflux application which calls 5 different backendservices using webclient. We have Log4j2 for logging and using MDC based logging to hold some log lables and attach it to log ...
springbootlearner's user avatar

1
2 3 4 5
134