Skip to main content

Questions tagged [memory-leaks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
232 views

nginx reload - effectively memory leak

When running nginx -s reload, nginx is meant to soft reload (gradually close existing connections on the Old process, and service new requests on the New process). It does that, except it seems that (...
Barry's user avatar
  • 132
0 votes
1 answer
57 views

How does kmemleak in Linux detect the unreferenced memory?

I am working on an embedded Linux system (kernel-5.10.24), and I am trying to understand how does kmemleak work. According to the document, the kmemleak scan the data section to check if there is ...
wangt13's user avatar
  • 443
0 votes
0 answers
274 views

How to catch the memory leakage of a process in Linux?

I am working on an embedded Linux system (kernel-5.24.0), where is 128MB RAM in it. Now I found a process has memory leakage (from the free and available output of free -k), and I am trying to figure ...
wangt13's user avatar
  • 443
4 votes
1 answer
1k views

Does QEMU on Linux Ubuntu 20.04.1 x86_64 have a memory leak?

We have a testbed for an OSv project that runs (5.15.0-72-generic - 20.04.1-Ubuntu - x86_64) the same instances a lot of time. The script for the execution of a single run is very simple and follows: ...
robob's user avatar
  • 584
0 votes
0 answers
79 views

Kernel memory leak when using a Linux system as router

I am working on two embedded Linux systems (kernel-6.2.10) both based on Toradex colibri IMX6ULL SoM. The first one (system A) is configured to work as a wifi access point (with hostapd), and the ...
willy martin's user avatar
0 votes
2 answers
4k views

OOM Killer triggered when available memory is high

I have been getting random kswapd0, and OOM killers even though available RAM -100MB. Already gone through many other similar issues, but I could not get why OOM killer triggered in my case. Hoping ...
Dinesh Kumar Govinda's user avatar
1 vote
0 answers
165 views

Linux (Mint) eats all my RAM

I know, there are plenty of "Linux eat my RAM" threads all over the internet, but they can't help me to solve my problem. (I had a try with this question on askubuntu but I'm off-chart with ...
Franck Lefebure's user avatar
0 votes
1 answer
300 views

Weird behaviour of OpenSSH server eating slowly all the available memory

I have a machine running a pgbouncer server and an Open SSH server so clients can enstabilish a tunnel to the server and connect to the database. Now all the clients keep the connection alive for ...
Federico Loro's user avatar
3 votes
0 answers
194 views

Opening powershell remote sessions in a loop in linux leaks memory

I am stuck with the following problem: we have an app that runs an continuous loop opening remote connection via powershell (performing some actions and then closing). This works fine in a Windows ...
Veverke's user avatar
  • 368
0 votes
1 answer
3k views

Identify high memory allocator / leaking process in Linux causing oom (out of memory) kernel killing processes

I have come across plenty of info on oom in general but not much to identify the root cause of the issue. OOm killer kills processes based on its scoring but the process it kills need not be the one ...
preetam's user avatar
  • 117
1 vote
2 answers
822 views

Clean RAM after some days of PC usage

I have 8GB RAM, and use my PC (Debian 10, KDE plasma 5.14.5) "normally" but with many programs running in parallel: Firefox (≈ 250 Tabs) Chromium (10 Tabs) Thunderbird 10x Okular 2x Pycharm ...
cknoll's user avatar
  • 130
1 vote
0 answers
368 views

Hyper-V excessive Memory Demand with static memory

I have Gen 2 VM with Debian 10.5 in a Hyper-V(2019) host. Currently its running a web app which does not use much memory (the system monitor shows its using 2GB out of 8GB), but the memory demand ...
John Gardounis's user avatar
4 votes
1 answer
2k views

Xorg taking huge amounts of memory

Lately, there is a lot of memory leak on my (Arch) Linux laptop. A command named Xorg -nolisten tcp :0 vt1 --keeptty -auth /tmp/serverauth.mWgFYYiRdF is continually taking 27.2 % of my 8GB RAM (also ...
Akshat Vats's user avatar
1 vote
0 answers
37 views

Centos show unexpected behavior when run a time consuming command

I have had a problem with my centOS for a long time and I search all off the internet and not found anything helpful. My problem is when I run some commands like python manage.py makemigrations (this ...
Ali dashti's user avatar
24 votes
5 answers
66k views

Python programs suddenly get killed

I'm running some python programs that are quite heavy. I've been running this script for several weeks now, but in the past couple of days, the program gets killed with the message: Killed I tried ...
yovel cohen's user avatar
1 vote
0 answers
382 views

How to control the D-Bus daemon virtual memory usage?

I am currently trying the D-Bus sample codes from the following link: https://linoxide.com/how-tos/d-bus-ipc-mechanism-linux/ It worked. Then I performed the exhaustion tests on the sample code above ...
Micfox's user avatar
  • 11
7 votes
1 answer
2k views

How can I trigger Firefox memory cleanup from the terminal?

Does anyone know how to initiate the garbage collection and memory reduction in Firefox (about:memory > Free memory > GC/CC/Minimize memory usage) from the terminal? This browser is using way to ...
david's user avatar
  • 329
1 vote
1 answer
346 views

Available memory drops with usage, and closing applications/restarting X doesn't regain it

I'm aware that the kernel uses memory for caches, but that that memory is available to user applications on demand. In claiming that memory is "missing" I am refering to the "available&...
Adrian Lang's user avatar
0 votes
0 answers
109 views

Seelnium crashes since RAM is not enough... but what is RAM used for?

We run Selenium (JAVA) with headless Chrome. This all takes about 300 MB RAM. VPS has 1 GB RAM but selenium "crushes": Exception in thread "pool-1-thread-115" org.openqa.selenium....
Igor Savinkin's user avatar
2 votes
0 answers
157 views

why does atril keep webkit2gtk-4.0 processes with ~100GB virtual memory?

I'm using the Cinnamon desktop environment on Devuan GNU/Linux Beowulf (like Debian Buster but without systemd). I've just brought down all of my browser and other significant apps, but - leaving a ...
einpoklum's user avatar
  • 9,643
3 votes
0 answers
794 views

Is this a kernel memory leak? (Excess Active/Inactive pages v Cache)

I have a machine that leaks memory (even after an application restart) - two machines run similar applications with similar workloads, slightly different kernel revisions of 4.x The noticeable ...
PaulS's user avatar
  • 131
5 votes
0 answers
841 views

Possible xorg memory leak

My problem in one picture : The memory usage of xorg as a child process of sddm keeps growing with time. Everytime I restart my computer, the problem reappears after a few dozens of minutes. I tried ...
JeromeLaurent's user avatar
5 votes
1 answer
1k views

What happens to memory that wasn't freed in a kernel module after unloading?

Suppose I called kmalloc and didn't free that memory before rmmod was called on the module, what happens to that memory? Is it a memory leak and it is completely unusable until restart, or does the ...
Eloo's user avatar
  • 189
2 votes
0 answers
425 views

Cache Memory Leak (or looks like one) slows down a program

I have a strange problem that looks like a Memory Cache Leak (not a memory leak) leading to a slow down of a program. Let me set the stage first. Reproducibly (using ganglia to monitor), on a cluster ...
Laurence Marks's user avatar
0 votes
1 answer
1k views

Garbage collect my gnome-shell memory!

I use Gnome/Wayland (Fedora distro) almost exclusively and enjoy its features. However, gnome-shell consistently consumes more and more memory as a result of it not releasing unused memory. ...
rickhg12hs's user avatar
  • 1,247
0 votes
1 answer
400 views

Linux is consuming lot more menory than RSS output

Below are the output of free -g and ps -aux. free indicates 35G of RAM being used, but I don't see how the ps output might be showing me what processes exactly are consuming the most memory. ...
Varun Dogra's user avatar
2 votes
2 answers
1k views

Why the kernel doesn't stop processes starving the resources?

I'm running a linux box(ubuntu) and every few months it freezes and I'm left with no choice(SysRq-F and other keyboard shortcuts are not working) but to reboot it losing all the data. I'm wondering ...
mike's user avatar
  • 171
11 votes
1 answer
2k views

How to mitigate Spectre and Meltdown kernel memory leaking CPU bug on OpenBSD?

Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign and Reading privileged memory with a side-channel In recent news people could read about a kernel memory leaking CPU ...
whoonetets's user avatar
3 votes
1 answer
2k views

How to fix mbuf exhaustion under FreeBSD 10?

A FreeBSD server which was recently upgraded from FreeBSD 10.3-STABLE to FreeBSD 10.3-RELEASE-p21 is exhibiting mbuf exhaustion. Under the course of normal operation, we see mbuf usage steadily ...
Josh's user avatar
  • 8,508
3 votes
1 answer
2k views

How can the OOM killer kill ulimit(ed) process?

I'm playing with MongoDB clusters. After few OOM killers, I decided to ulimit mongoDB with memory to 4G of RAM. After few hours, it was killed again with OOM. So my question is not about MongoDB, it's ...
confiq's user avatar
  • 146
2 votes
1 answer
12k views

How to troubleshoot what eats memory?

I'm trying to figure out why memory consumption started to constantly increase on my server during the last hours. I've tried to find the cause on the application level, but no success. That is why ...
Y. E.'s user avatar
  • 123
3 votes
3 answers
11k views

kernel eats memory, but never release

I know, this is the 1000th question about the same topic. I've spent days reading so many threads, but I still could not find an answer to my weird situation. When I did have 16GB of RAM on my ...
Jean-Christophe Heger's user avatar
3 votes
1 answer
4k views

Why does evolution-calendar-factory uses so much virtual memory?

In Debian Jessie 64-bit with Gnome 3.14.1, System Monitor shows evolution-calendar-factory process is using 1.1 GiB, and evolution-alarm-notify is using 826.6 MiB of virtual memory. I don't use no ...
Rodrigo's user avatar
  • 1,842
1 vote
0 answers
378 views

ksmserver takes a lot of memory

For some reason ksmserver started to take huge amount of memory (1.6 Gb at the moment). The longer the uptime the more it takes. Seems like a memory leakage for me. Unfortunately, I didn't notice the ...
Yuri Drobkov's user avatar
1 vote
0 answers
125 views

Possible memory leak when writing files to SD with FAT fs

I have a HI3516A SoC based IP camera with SD card slot. The operation system on camera is custom 3.4.45 Linux kernel. Everything works well, but I need to have a copy of video from camera on my remote ...
ArhiChief's user avatar
5 votes
1 answer
5k views

Tracking down Linux memory usage when not showing up in cache

Before you get your pitchforks out, I am having trouble tracking down on where the memory is going into the caching system in Linux. I have seen Linux ate my RAM!, and How to see top processes by ...
Kevin Vasko's user avatar
1 vote
1 answer
156 views

Word frequency gawk memory leak

I have the following bash script: #!/usr/bin/env bash grep -e '^[a-zA-Z]\{4,8\}$' data/words3.txt | tr '[:upper:]' '[:lower:]' | sort -u > data/passphrase-words.txt function wordfrequency() { ...
xenrelay's user avatar
3 votes
2 answers
5k views

Unlinking files in /dev/shm not freeing memory?

I get the feeling I'm going insane, or tmpfs is very broken for long term use. I have a workload that very rapidly creates and unlinks files in /dev/shm/[some directory tree]. Linux Slab usage (in ...
Waco's user avatar
  • 73
0 votes
1 answer
1k views

linux server memory leakage, it grows inactive memory, how to find the process in inactive memory and to kill?

I have a problem with my Linux cent OS server, leakage of memory grows inactive memory, so how to find the process consists with huge memory in inactive memory to kill
shiva's user avatar
  • 1
1 vote
1 answer
433 views

Embedded Linux OOM - help with lost RAM

I have little Linux system with 256MB RAM. I'm little bit confused, where the RAM may be lost? It is running old linux kernel 2.6.38 and I'm not able to ubgrade it (some specific ARM board). SHM and ...
j123b567's user avatar
  • 375
4 votes
0 answers
908 views

Possible slab memory leak related to bio and btrfs?

I'm currently running a rebuild on a btrfs NAS (~20TB) that had a drive failure. It's going to take a few days. My problem is about once every 24 hours the RAM filled up and the kernel starts killing ...
HittingSmoke's user avatar
4 votes
2 answers
1k views

Why does bash 4.3 keep allocating memory in a script

Why does this shell script gradually consume more memory in bash? I’m not using any local variables. Although the value of cpid is changing at every iteration because ls exits immediately, it should ...
Greg Nisbet's user avatar
  • 3,086
0 votes
1 answer
206 views

Where is all my RAM going

On our RHEVM server, when i run free -m command it tells that 23117MB "Used -(Buffers+cache)" of RAM is in use, And Free "Free+(Buffers+cache)" is 9120MB Total usable RAM is 30759MB Actual used ...
OmiPenguin's user avatar
  • 4,328
0 votes
1 answer
1k views

How do I check Memory leakage in solaris server? [closed]

I need to check memory leakage on my Solaris server.
Wasila's user avatar
  • 113
2 votes
0 answers
2k views

Extremely high shmem usage

I'm trying to debug the issue that's periodically taking down my work machine. It's an OOM-type problem, and based on this /proc/meminfo output: Total: 32902608 kB MemFree: 4054100 kB ...
user508633's user avatar
0 votes
0 answers
2k views

Rudimentary memory leak check

I plan to use something like ps -A --sort -rss -o comm,rss,sz,vsz to detect memory leaks. I plan to run the command before and after test cases in an embedded system, and my hope it that the system ...
Fredrik Johansson's user avatar
11 votes
2 answers
12k views

rsyslogd eating up 20+ GB (!) of RAM - what evidence to gather?

I have a Ubuntu 14.04.3 box running kernel 3.13.0-74 with 32GB RAM, which features a rsyslogd process gone mad: $ ps -auxww | grep rsyslog syslog 16212 0.7 64.0 27966168 21070336 ? Ssl Jan04 ...
sxc731's user avatar
  • 411
1 vote
0 answers
837 views

Memory Leak trackdown

I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
jrlambs's user avatar
  • 11
3 votes
1 answer
693 views

awk causing memory leak?

I am using awk to process a huge data file (about 100 million lines). This is my expression- tac <myfile> | awk -F',' 'OFS=\",\" {if(/^#/){print;}else{\$1=tolower(\$1);if(!seen[\$1]++)print;}}'...
pragmatic's user avatar
  • 131
3 votes
1 answer
4k views

Xorg consuming 1.1GB, is it a leak?

I am facing a problem wherein Xorg starts to consume more and more memory and finally eats up the whole swap space. As shown below, Xorg's virtual memory is about 1.1GB. My system runs only one GTK ...
ReddyGB's user avatar
  • 61