memory-leaks

Java process's memory grows indefinitely, but MemoryMXBean reports stable heap and non-heap size

为君一笑 提交于 2020-12-30 05:11:10
问题 I am working with a team developing a Java GUI application running on a 1GB Linux target system. We have a problem where the memory used by our java process grows indefinitely, until Linux finally kills the java process. Our heap memory is healthy and stable. (we have profiled our heap extensively) We also used MemoryMXBean to monitor the application's non heap memory usage, since we believed the problem might lie there. However, what we see is that reported heap size + reported non heap size

Java process's memory grows indefinitely, but MemoryMXBean reports stable heap and non-heap size

删除回忆录丶 提交于 2020-12-30 05:10:51
问题 I am working with a team developing a Java GUI application running on a 1GB Linux target system. We have a problem where the memory used by our java process grows indefinitely, until Linux finally kills the java process. Our heap memory is healthy and stable. (we have profiled our heap extensively) We also used MemoryMXBean to monitor the application's non heap memory usage, since we believed the problem might lie there. However, what we see is that reported heap size + reported non heap size

SwiftUI memory leak when referencing property from closure inside Form/NavigationView and swapping views

给你一囗甜甜゛ 提交于 2020-12-29 12:56:05
问题 I have something like this: struct SomeView: View { @ObservedObject var viewModel: SomeViewModel var body: some View { NavigationView { // <- culprit Button(action: { self.viewModel.logOut() }) { Text("X").frame(width: 40, height: 40) } } } class SomeViewModel: ObservableObject { func logOut() { // changes global state, based on which the views are swapped, so `SomeView` is removed and replaced by a different one } } When the button is pressed, SomeView is closed and a different view is

Fix memory leak in for loop

∥☆過路亽.° 提交于 2020-12-15 04:28:43
问题 I have issues with memory leaks on a C++ function that I have sourced into R through Rcpp. This result in a sudden abortion of my R session. Sometimes I do get the following error message: GC encountered a node (0x111e25820) with an unknown SEXP type: 11 at memory.c:1748 What is weird to me is that if in function_test I move double lower =1; and double upper = value2; inside the for loop and edited them by also adding 'i': double lower =1 + i; and double upper = value2 + i; the function works

Perl/Tk Memory Leak When Using destroy() Command

爱⌒轻易说出口 提交于 2020-12-12 09:36:21
问题 I am having an issue with a large leak in Perl/Tk running on Unix. I am unable to post most of the code due to certain restrictions, but I have been able to identify what is causing the memory leak and create a small program that has the same symptoms. Basically I am running a GUI where a frame is destroyed and repopulated regularly. This seems to cause a large memory leak that keeps growing however. I thought the destroy command would get rid of all traces in memory, but it does not seem to

High kernel memory usage in Kubernetes Node

戏子无情 提交于 2020-12-12 06:44:05
问题 I am pretty desperate searching for a solution to this. I am running a Kubernetes Cluster (v1.16.7) on AWS. Node specs are : It is an Amazon EC2 t3.medium instance with 4GB RAM and AMI: k8s-1.11-debian-stretch-amd64-hvm-ebs-2018-08-17 with kernel: 4.9.0-7-amd64 My main problem is that I see increased memory usage in the kernel, which leads to faster memory starvation issues in my node. More specifically: free -m : total used free shared buff/cache available Mem: 3895 3470 130 3 294 204 Swap:

High kernel memory usage in Kubernetes Node

僤鯓⒐⒋嵵緔 提交于 2020-12-12 06:43:29
问题 I am pretty desperate searching for a solution to this. I am running a Kubernetes Cluster (v1.16.7) on AWS. Node specs are : It is an Amazon EC2 t3.medium instance with 4GB RAM and AMI: k8s-1.11-debian-stretch-amd64-hvm-ebs-2018-08-17 with kernel: 4.9.0-7-amd64 My main problem is that I see increased memory usage in the kernel, which leads to faster memory starvation issues in my node. More specifically: free -m : total used free shared buff/cache available Mem: 3895 3470 130 3 294 204 Swap:

SwiftUI - Hiding LazyVGrid causes memory leak

吃可爱长大的小学妹 提交于 2020-12-07 04:36:47
问题 I have a LazyVGrid that displays some data fetched from a remote API. When hiding the LazyVGrid via a button press, I encounter a memory leak. This seems to happen only if there is more content than can be displayed inside of LazyVGrid . I have prepared some code for you to reproduce this leak. Is there something flaut with this code, or ist that a bug on apples side? Maybe theres a workaround? import SwiftUI import Foundation import Combine enum FakeAPI { static var fakeData: [Result] {

clGetPlatformIDs Memory Leak

被刻印的时光 ゝ 提交于 2020-12-03 09:47:36
问题 I'm testing my code on Ubuntu 12.04 with NVIDIA hardware. No actual OpenCL processing takes place; but my initialization code is still running. This code calls clGetPlatformIDs. However, Valgrind is reporting a memory leak: ==2718== 8 bytes in 1 blocks are definitely lost in loss record 4 of 74 ==2718== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2718== by 0x509ECB6: ??? (in /usr/lib/nvidia-current/libOpenCL.so.1.0.0) ==2718== by 0x50A04E1: ??? (in /usr/lib

clGetPlatformIDs Memory Leak

喜夏-厌秋 提交于 2020-12-03 09:44:30
问题 I'm testing my code on Ubuntu 12.04 with NVIDIA hardware. No actual OpenCL processing takes place; but my initialization code is still running. This code calls clGetPlatformIDs. However, Valgrind is reporting a memory leak: ==2718== 8 bytes in 1 blocks are definitely lost in loss record 4 of 74 ==2718== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2718== by 0x509ECB6: ??? (in /usr/lib/nvidia-current/libOpenCL.so.1.0.0) ==2718== by 0x50A04E1: ??? (in /usr/lib