20,480 questions
6
votes
1
answer
2k
views
Spring Boot based java application is not releasing memory (Deployed on K8)
I have java(spring boot framework version: 2.7.11 & open jdk:11) based microservice. When this microservice is not serving any requests, each pod of the microservice is using about 470MB. We have ...
0
votes
3
answers
9k
views
How to write or append string in loop in a file in java?
I'm having memory problem as working with very large dataset and getting memory leaks with char[] and Strings, don't know why! So I am thinking of writing some processed data in a file and not store ...
0
votes
1
answer
102
views
Vue 3: Detached <video> elements not garbage collected after src change
I'm working with a Vue 3 component that plays videos using the native tag. I dynamically change the src of the video based on a prop (videoName) and I need to avoid memory leaks.
Despite cleaning up ...
4
votes
1
answer
12k
views
Reducing memory utilization of Angular app
I've created a simple Angular app with one Form and a Table (PrimeNg DataTable).
Just to get a substantial difference in memory utilization with initial and final readings, I performed multiple Form ...
1
vote
0
answers
57
views
@angular/ssr v20+ with Express: 1+ Second Event Loop Blocking After TransferState Serialization
We're experiencing a consistent 1-1.5 second delay in our Angular SSR v20.2.2 application that occurs after all Angular rendering completes but before the response is sent to the client. The delay ...
2
votes
1
answer
23k
views
Unexpected error occurred invoking async method
I am use spring boot maven project and implement @async for multi-threading request processing but i get below error:
java.lang.OutOfMemoryError: Java heap space
2020-07-13 17:04:15.752 Unexpected ...
12
votes
1
answer
5k
views
How to find out what is referencing a detached DOM tree using Chrome Dev Tools
I'm trying to figure out exactly how to get which variable is referencing something in a detached DOM tree. I've isolated the problem down to two simple views, and I'm trying to use Chrome Dev Tools (...
0
votes
1
answer
147
views
Why do Images leave giant piles of RAM behind them? [closed]
I am currently working on a .NET 9 WinForms program that contains an ImageViewer, which is a seperate window where you can scroll through a series of images.
My problem is that even after closing the ...
0
votes
1
answer
120
views
How can I free the nvidia gpu memory allocated by tensorflow (2.17.0) in my running jupyter notebook?
I have a jupyter notebook running on the kernel opt/conda/bin/python in my Google Compute Engine machine (Debian).
The first cell of my notebook loads image data from the disk and saves it in the ...
0
votes
0
answers
35
views
java spring application - unhealthy heap behaviour
So i have a very relatively simple java application spring 2.3.7 on java 8 that microservice simply calls DB to save update or retrive base64 image string thats all.
So i have deployed that in my ...
6
votes
2
answers
6k
views
Puppeteer Memory Increase Problems
I'm running Puppeteer script both on my Amazon Linux EC2 Instance and my Macbook Air (OSX).
The script has to stay in tact at one page and repeatedly perform form-filling tasks over and over again.
I'...
18
votes
4
answers
8k
views
Does Python GC deal with reference-cycles like this?
Using objgraph, I found a bunch of objects like this:
Will Python's garbage collector deal with cycles like this, or will it leak?
A slightly wider view of the loop:
0
votes
1
answer
575
views
When show UIAlertView in iOS 6.1.2, the memory leaks happen
When UIAlertView is shown in iOS 6.1.2, the app gets memory leaks like the following:
__NSDictionaryM 1 0x1e5c6000 32 Bytes TextInput __92-[TIResourcePathManager fetchAssetsWithNames:...
3
votes
1
answer
98
views
Why is AnyEvent slowing down or leaking memory?
While writing a new Perl module which was capable of using AnyEvent, my benchmarking tests showed that it was slowing down dramatically over time. Turning off AnyEvent cured the problem, which ...
1
vote
0
answers
59
views
Python Flask app connected to Cassandra Astra DB RAM memory issue
I'm running a minimal Python Flask app with one API endpoint which make a simple call to retrieve data from the a Cassandra Datastax DB inside a for loop.
# Day-2-Day Power
@app.route("/d2d_new_2/...
7
votes
7
answers
5k
views
VS2010 reports false memory leaks for static classes in a DLL
A follow-up question to Memory leaks when calling ITK from Visual Studio DLL
I refined the problem to the simplest example.
struct A
{
public:
A()
{
mp_data = new int(0x42);
...
5
votes
3
answers
10k
views
How to efficiently flatten a map?
My app needs to take a large array of nested instances of map[string]interface{} and turn them into flattened maps.
For example:
{
"foo": {
"jim"...
51
votes
1
answer
19k
views
Could Navigation Arch Component create a false positive memory leak?
I have a basic knowledge of memory leaks and what can cause them. That's why I don't understand if I have a problem in my code or is it a false positive. I don't know which part of the code I should ...
0
votes
1
answer
476
views
Reliably Ensure Memory Safety in C++ 14
I'm converting some old C++ code to use shared_ptr, unique_ptr and weak_ptr, and I keep running into design problems.
I have "generator" methods that return new objects, and accessor methods that ...
40
votes
8
answers
17k
views
How do I create a memory leak in JavaScript?
I would like to understand what kind of code causes memory leaks in JavaScript and created the script below. However, when I run the script in Safari 6.0.4 on OS X the memory consumption shown in the ...
2
votes
1
answer
182
views
matplotlib memory leak on MacOS
I have faced a matplotlib memory leakage problem while working on my python project that I can't solve. Nothing I found regarding this problem helped. Here is a very simplified script causing ...
4
votes
3
answers
9k
views
How to find memory leaks in vue js project? Does Vue js handle those leaks on its own?
I have tried finding memory leaks in my vue app. I have used chrome dev tools memory heap snap shot for that. But I was not able to find any. I tried looking for tutorials or videos on youtube and ...
1
vote
1
answer
166
views
Direct memory is not released when downloading files
I have encountered a memory management problem in a Spring Boot application, and would like to get advice on how to properly clean up direct memory.
Configuration:
JDK: OpenJDK Runtime Environment (...
0
votes
2
answers
264
views
The unmanaged memory leak of the w3wp process of the .net5 program, where is the memory occupied?
I encountered a strange problem when analyzing memory leaks in windbg... Memory was lost...
!address -summary shows MEM_COMMIT = 3.3G
0:048> !address -summary
...
0
votes
3
answers
2k
views
LoadRunner and the need for pacing
Running a single script with only two users as a single scenario without any pacing, just think time set to 3 seconds and random (50%-150%) I experience that the web app server runs of of memory after ...