Questions tagged [memory-leaks]

0

votes
0

answer
6

Views

Why do the (system), (complied code) and other bracketed objects keeps growing in Chrome memory heap?

I have a visual presentation of a graphical scheme in svg. It consists of a large number of elements(~2000). Each minute I load fresh data(there might be no changes) via background worker, then remove an old svg, all event listeners, and draw a new one. Several hours later the tab's memory usage gro...
vlad
12

votes
3

answer
238

Views

Possible Memory Leak in Ignite DataStreamer

I'm running Ignite in a Kubernetes cluster with persistence enabled. Each machine has a Java Heap of 24GB with 20GB devoted to durable memory with a memory limit of 110GB. My relevant JVM options are -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC. After running DataStreamers on every nod...
kellanburket
0

votes
0

answer
7

Views

Android App Memory leaks with repeated volley calls

I've looked at just about every stack overflow thread on volley & leaks, handlers & leaks, weak references and have just about become mentally paralyzed. My struggle has been translating the techniques in the articles to my code. I'm essentially trying to 'ping' a local server within a fragment in...
A P
-2

votes
1

answer
24

Views

How to solve high memory consumption in java application

Suppose currently Java memory is used up only 20% but after loading the application the memory consumption goes upto 90%, note that here just only application is started not any request is fired from that application. So how can we detect this memory usage and how to fix this issue.?
shubham
1

votes
3

answer
1.6k

Views

AlertDialog causes leaks when activity finishes

I have a base Activity that extends FragmentActivity. In this activity I have a dialog with an OK button. The dialog says there's no internet connection. After a user clicks on the button the activity finishes. I'm aware that before exiting an activity I must call dismiss on an AlertDialog object. I...
serg66
1

votes
1

answer
22

Views

Python not releasing memory in for loop

I am working on a function to do some processing on big input data. However, since I can't fit all data into memory at once (117703x200000 matrix for dot product) I'm dividing it into chunks and computing into by parts. The output only takes the first 5 elements (after sorting) and therefore must be...
Eduardo
5

votes
4

answer
140

Views

Does terminating a program reclaim memory in the same way as free()?

I saw this answer to a stack overflow question that says that freeing memory at the very end of a c program is actually harmful because it moves variables that wouldn't be used again into system memory. I'm confused why the free() method in C would do anything different than the operating system rec...
ngood97
2

votes
1

answer
15

Views

golang program memory keep growing but has just a little inuse_space

I have a golang program running some routines periodically. Its memory (RSS in top result) keep growing on some servers but on some server it doesn’t. What's weird is that the pprof result of the RSS-growing instance shows the process is taking just little inuse_space memory. Does this mean that...
user2828102
1

votes
0

answer
239

Views

R memory loop leakage

R crashes when I loop. Let's say I need to loop 1000 times (I know we should avoid loops in R, but here I have to loop). If I leave the computer to loop, the amount of memory R takes up increases a lot, so much so that my Mac crashes. However, if I break the loop then the memory 'clears up'. So bas...
1

votes
0

answer
289

Views

Memory Leak from Java OpenCv

I process a frame... @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { Mat frame = inputFrame.rgba(); mCameraCalculator.processFrame(frame); return frame; } which sets the frame to a new cropped Mat. public void processFrame(Mat frame) { //fill frame outside o...
poppy
1

votes
0

answer
49

Views

Simply creating a RenderTargetBitmap in App.OnStartup causes memory (only when MainWindow is created too). What is it causing?

I scavenged various SO threads, MSDN and also this bug report on connect but I do not understand, what actually causes the memory leak in the following trivial WPF project (this is a repro, just create any new WPF project and put this into App.xaml.cs protected override void OnStartup( StartupEventA...
Samuel
1

votes
1

answer
257

Views

Leafletjs memory leak on map remove

I have developed a sample for a potential problem in map.remove(). See: https://jsfiddle.net/moricio/e2wvwgu8/1/ This sample will choose a random lat/lng and will display a map centered at that point. It will wait 10 seconds before removing the map and generating a new position. It does this over an...
moricio
1

votes
1

answer
270

Views

Memory leak detection on Universal Windows Platform

In my application, I want C++ runtime library to automatically detect memory leaks. In Win32 application, this works perfectly well by adding the following code: #if defined(_DEBUG) || defined(DEBUG) _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif In Universal Windows Applicat...
Egor
1

votes
1

answer
1.6k

Views

NodeJS - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed

I am having this problem... I am using Windows 7 and Chrome. I have tried this solution: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory But didn't work. Also tried this other: Devextreme : FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory...
URKA
1

votes
0

answer
131

Views

Reduce Javascript memory leaks?

I have been trying to reduce javascript memory used by our web application (single-page application without MVC framework with jQuery & Bootstrap and a lot of Plugins ). And remove memory leaks we have. In our web application, there is a dashboard filled with Highcharts. It can be of any number can...
Jaimin MosLake
1

votes
1

answer
194

Views

AWS Advanced Health Reporting shows memory warning - is my Java memory settings to blame?

I'm using Elastic Beanstalk (T1.small - 1GB RAM) for a Java web app. I've configured it so that the Java Heap has min heap 200mb max heap 400mb max perm-gen 100mb So in total 500mb reserved for Java 'stuff'. I felt it was generous leaving 500mb for the operating system and all the other stuff, such...
Devology Ltd
1

votes
0

answer
267

Views

Guide to use valgrind with wine

Requirement: Remove memory-leaks for windows application(x86 and x64) by using wine and valgrind. After lot of seraching on net and also looking into official page for this Valgrind and wine, i am still unable to fine proper steps/ guide to this. Constaraints involved : 1. OS type (Centos, RHEL... I...
0x6900
1

votes
1

answer
53

Views

Memory Leak from Referenced Pointer

I am learning about reference pointers and memory leaks. I have created a method that takes in a pointer to a NodeData, create a Node that contains NodeData, and a left pointer, and a right pointer, and insert it depending on its value. I am using a reference pointer to traverse my tree. I am gettin...
Emma
1

votes
0

answer
220

Views

Memory Leak with pdf.js and iron-list

While developing some custom elements with polymer and pdf.js to show pdf files I noticed a memory leak while displaying and switching between two pdf files. The consumed memory grows and I can't seem to figure out the reason. To observe the memory changes I use heap snapshots in google chrome. The...
Antonio Dell
1

votes
0

answer
263

Views

LeakCanary clean HPROF files

I have a project which integrated LeakCanary to detect memory leaks. I know it used HAHA to dump memory to hprof files to detect leaks. But every single time I Run app from Android Studio, it trigger dumping process and create a new hprof file which has about 60-70 MBs of size. By the time it cause...
nhoxbypass
1

votes
0

answer
27

Views

Garbage collection only every third cycle

In my AngularJS 1.5 app, I've discovered a very strange memory behavior. I set up a very simple test: An almost empty template being state 1 (using Angular ui-router) which only forwards to state 2. The template for state 2 is filled with a rather large dummy table by an array inside the scope. In t...
cis
1

votes
2

answer
273

Views

Possible Memory Leak In Oracle.ManagedDataAccess Library

I started writing a program that copies data from an oracle database to a SQL Server database and immediately ran into a memory issue. I am using the Oracle.ManagedDataAccess library (nuget install command: 'install-package Oracle.ManagedDataAccess'). The library is version 4.122.1.0 Here is my fu...
David
1

votes
0

answer
498

Views

Spring @Scheduled leak

Good day! I have some rest application running on standalone apache tomcat. I have a simple task with @Scheduled annotation like this: @Scheduled(fixedRate = 200000) private void updateSettings() { //do some cool stuff } So when I run my application I get something like: org.springframework.beans.fa...
RedCollarPanda
0

votes
0

answer
3

Views

Batch image file size reduction script crashes after about ~200 images processed in Python 3 with pillow (PIL)

I'm attempting to write a script that takes a long list of PDFs with a number of images, generally between 1-20 images (the PDFs ONLY contain images, nothing else). It opens each pdf and analyzes each image contained within and attempts to reduce the file size of each image contained therein to ~50...
jlink7
1

votes
0

answer
431

Views

How to avoid native memory leak with ObjectAnimator on API 23?

I have API 23 tablet devices that need to run 24/7. One part of the UI is animated using ObjectAnimator to make it continually fade in and out. This, for some reason, causes native memory usage (from what I can see in Android Studio memory profiler) to slowly rise at a rate of about 40mb per day. Th...
knezmilos
1

votes
0

answer
114

Views

Retain Cycle in Class Causing Potential Memory Leak

So using the graph debugger tool and instruments I have noticed that there is a memory leak in my app. After many hours I have or the graph debugger has tracked it down to this function. override func didUpdate(to object: Any) { comment = object as? CommentGrabbed } Which is contained in this bigger...
Ron Baker
1

votes
0

answer
56

Views

How I can clear memory when use Camera?

I'm trying to create a camera app but got memory leak. I can clear cache of PhotoLibrary but cant clear cache of Camera. App will down after take about 40 photos. How can I clear memory? // After taking a picture func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithIn...
Minoru Saito
1

votes
0

answer
124

Views

Is this a a sign for a memory leak in Reactor?

I have an application with a network of Fluxes processing some data. The data to be processed is received via web sockets. Except from the end of the processing pipeline where some aggregated values are stored the application should be stateless. However I see a continuous increase of the heap size....
deamon
1

votes
0

answer
95

Views

How to free memory well in c++

I'm trying to thoroughly learn and understand the proper designs and techniques of freeing memories. I wrote a very simple test class and a main function: #include using namespace std; class TestClass{ public: bool *state; void setState (bool b) {*state = b;} TestClass(){state = new bool(false);...
xsx
1

votes
1

answer
150

Views

Valgrind finding memory leak for string even after I free it

In my program I declare some nodes in a linked list: node_t* newSymbol = malloc(sizeof(node_t)); newSymbol->symbol.name = strdup(name); //name is a (const) char* that is a parameter to function I'm in. newSymbol->symbol.addr = addr; I use strdup because assigning the symbols name to the parameter di...
Bonfire184
1

votes
0

answer
415

Views

Cursor window allocation of 2048 kb failed running with background service (runnable)

i have problem with get data from SQLite Cursor window allocation of 2048 kb failed using Thread background service but if i run List branchList= DBTransaction.BranchList(); without Thread background service, this function is working normally MyService.Java public int onStartCommand(Intent intent, i...
youngs
1

votes
1

answer
511

Views

What is kernel dynamic memory in linux systems and how to free it

This question is related to https://serverfault.com/questions/896282/cannot-explain-memory-occupancy-in-linux/896525#896525 and to How to correctly identify and correct a memory leak on a server? What is kernel dynamic memory? I have virtually no process running in my workstation now $ ps aux --sor...
mox
1

votes
1

answer
177

Views

How to remove trace started with FirebasePerformance

We want to have a system where there are several types of traces (declared in enum) and we assume that every type of trace will be the one of this type in all the trace's life span. We use something like this: public class FirebasePerfAnalytics { private ConcurrentHashMap traces = new ConcurrentHash...
Gaket
1

votes
0

answer
414

Views

TCMalloc memory leak debugging

I've compiled an application with tcmalloc and used HEAPPROFILE environment variable to get heap files every 10MB or so a new heap file is created and according to the tcmalloc page i can use the pprof tool to compare heap files, and see what are the additional non released objects (possible leak)....
user3696279
1

votes
0

answer
188

Views

Tensorflow: TFRecordDataset + Embedding_lookup + Dynamic rnn -> memory leak

I am using SequenceExample to prepare features for sequence labeling task. The most important feature is an array containing ids of characters per input token, for example [[0, 1, 3], [1, 4, 5, 6], ...]. Since it is a multidimensional array I used VarLenFeature and tf.sparse_tensor_to_dense for pars...
ava_b
1

votes
1

answer
185

Views

Why are some Detached DOM have unknown distance with native HTML Elements as retainer Objects?

I noticed some Detached DOM have unknown distance and the retainers had something like native in HTMLAnchorElement and these retainers aren't live and doesn't have show any javascript references. Why does distance appear to nil - for these detached DOMs. Detached DOM also shows [3404] in (Global han...
Vishnu Mahendiren
1

votes
0

answer
115

Views

Threads Error Memcached cloud Heroku Java

Background We are developing a Java service in Heroku with 1 dyno, which is using Memcached cloud. Issue Meanwhile we were developing and testing it, It was working fine. However, when we decided to test it in a real environment, It started to return the following error: java.lang.OutOfMemoryError:...
Manwelanza
1

votes
0

answer
141

Views

Will there be a memory or resource leak if I do not read from an io.Reader when using a io.MultiWriter?

I need to get some large objects (up to 50GB) over HTTP from AWS S3 and calculate the hash of each object. I also need to get the content type and if it is a certain type, get some metadata. I want to do all of the above in parallel. I am considering using a io.MultiWriter and io.Pipes (adapted from...
F21
1

votes
1

answer
320

Views

Adapter causing memory leak

Im facing some memory leak trouble. At first I thought, it might be WeakReference or Listeners, but then I intentionally set them null in constructor (no point of 'em) to ensure, that memory leak is caused by some other problem. I'm pretty sure it's somewhere inside my OnCreateViewHolder or OnBindVi...
PeteWonder
1

votes
0

answer
76

Views

E/WindowManager: Activity has leaked window that was originally added here

I am getting Error So below is my code, public class SendMail extends AsyncTask { private Context context; private Session session; private String email; private String subject; private String message; private ProgressDialog progressDialog; public SendMail(Context context,String email, String subje...
shivani patil

View additional questions