Questions tagged [memory-leaks]

When a program neglects to relinquish memory it has allocated but no longer needs, allowing the memory to remain inaccessible and unrecoverable, a memory leak takes place.

Property usedJSHeapSize in Chrome

After doing some research online, I found that the documentation on this topic is quite lacking. I am currently dealing with a significant memory leak in my code and have been using: window.performance.memory.usedJSHeapSize However, it seems like the val ...

Is the memory usage of node.js proportional to the number of concurrent requests, or is there a potential memory leak?

Running the following node.js code: var http = require('http'); http.createServer(function(req,res){ res.writeHead(200,{'Content-Type': 'text/plain'}); res.write("Hello"); res.end(); }).listen(8888); Upon starting the server with node myFile.js, the node ...

Investigating Memory Usage in Google Maps API v3

I have been working on my project utilizing the Google Maps API v3, but I have encountered some significant memory leaks while browsing. Despite my efforts to find unload methods specifically for Gmap, I have not been successful. My website uses ajax, and ...

Retrieve an array of wide characters leading to a memory leak

I need help creating a JSON string from my input arrays. I used "new" to allocate memory for the JSON, but I'm unsure about how or where to deallocate this memory. Is there a more efficient way to write this function? wchar_t* SetExpectedTabsDat ...

Locating and fixing a memory leak in a ReactJS/NextJS/ApolloClient web application

https://i.stack.imgur.com/qXcZM.png Dealing with a memory leak in my new web application has proven to be quite challenging. Despite the fact that it did not manifest during local development, every 18 hours, a Kubernetes pod hosting a web client runs out ...

Challenges with Expanding Memory for Puppeteer

I am currently using a Puppeteer script on both my Amazon Linux EC2 Instance and my Macbook Air (OSX). The script needs to remain active on a single page and repeatedly perform form-filling tasks regularly. However, I have encountered an issue where runni ...

Organize elements with jQuery, remove, detach, clone, and append without worrying about memory leaks

I am facing a challenge with a parent div that contains approximately 300 child divs, each one containing an image and some text. I have an array with the necessary information to reorder these divs using references. However, whenever I loop through the a ...

At what point are DOMs erased from memory?

Recently, I've been working on an application that involves continuous creation and removal of DOM elements. One thing I noticed is that the process memory for the browser tab keeps increasing even though the javascript heap memory remains steady. To ...

Managing memory usage in Nuxt and preventing leaks

Currently running on Nuxt v2.13 and Vuetify v2, along with using keep-alive in the default layout. I've encountered a memory issue as my application grew in size, requiring at least 4GB of RAM on a cloud server to function properly. After researching and g ...

Could this be a Vue.js memory leakage issue?

Check out this component's code: import { defineComponent, ref } from "@vue/composition-api"; const template = /* html */ ` <div> <nav> <button @click="showCanvas = !showCanvas">Toggle</button> </nav>a <canvas v ...

TarInfo objects dripping information

I've encountered an issue with my Python tool that reads through a tar.xz file and handles each individual file within it. The input file is 15MB compressed, expanding to 740MB when uncompressed. Unfortunately, on a particular server with limited memory r ...

Tackling the issue of memory leaks in Node.js when dealing with a high volume of frequent

TL;DR https://gist.github.com/anonymous/1e0faaa99b8bb4afe3749ff94e52c84f - Example demonstrating memory consumption indicating a potential leak issue. Is the problem in my code or within the mysql package? Extended Version : I've been noticing significa ...

Prevent memory leakage by utilizing Angular's $interval feature in countdown processes

I have a controller set up to handle a countdown feature: var addzero; addzero = function(number) { if (number < 10) { return '0' + number; } return number; }; angular.module('theapp').controller('TematicCountdownController', [ '$scope', ...

Issue with memory leakage detected during compilation of Angular 12 application

My coworker and I are currently in the process of optimizing our Angular 12 application for our enterprise. The Issue: One major challenge we have encountered while developing our application is the continuous increase in memory usage each time the angul ...

Issue with video.js text track memory leakage (WebVTT/VTT)

I am utilizing Video Text Tracks to showcase advanced live information on top of the video. A new video is loaded every few minutes, each with its own .webvtt file (consisting of 2-3k lines). Although everything is functioning properly, there is a persis ...

Node(Meteor) experiencing a memory leak due to setTimeout

I have encountered an unusual memory leak associated with the use of setTimeout. Every 15 seconds, I execute the following code using an async function that returns an array of promises (Promise.all). The code is supposed to run again 15 seconds after all ...

Addressing memory leaks in React server-side rendering and Node.js with setInterval

Currently in my all-encompassing react application, there's a react element that has setInterval within componentWillMount and clearInterval inside componentWillUnmount. Luckily, componentWillUnmount is not invoked on the server. componentWillMount(){ ...

Uncovering the Proliferation of Memory Leaks in NodeJS

My ExpressJS Server is set up like this: var express = require("express"), app = express(); app.use(express.static(__dirname)); app.listen(1050); Upon starting the server, it consumes 20MB of v8 heap memory. However, if I reload the page every seco ...

Can asynchronous programming lead to memory leakage?

I'm wondering about the potential for memory leaks in asynchronous operations, specifically within Javascript used on both frontend and backend (node.js). When the execute operation is initiated, a delegate named IResponder is instantiated. This dele ...