Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [memory-leaks]

The tag has no usage guidance.

0
votes
0answers
21 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 ...
2
votes
1answer
56 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 ...
1
vote
0answers
32 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 ...
0
votes
1answer
607 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. ...
0
votes
0answers
37 views

Very slow HTTP requests over time on embedded Linux

An application I'm developing is gradually getting slower and slower to run HTTP/HTTPS requests over time. It's running on Buildroot embdded Linux on some quite old and slow hardware. After a few ...
0
votes
1answer
118 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. ...
0
votes
0answers
124 views

Infinite loop not releasing memory in Service script

I have a script which is started as part of a daemon, and runs an infinite loop to load data into a database. Depending on the hour, the data is loaded into one of 24 tables, and all data from the ...
1
vote
2answers
308 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 ...
11
votes
1answer
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 ...
3
votes
1answer
567 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 ...
3
votes
1answer
692 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 ...
2
votes
1answer
4k 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 ...
2
votes
3answers
4k 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 ...
3
votes
1answer
2k 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 ...
1
vote
0answers
336 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 ...
1
vote
0answers
55 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 ...
5
votes
1answer
854 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 ...
1
vote
1answer
67 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() { ...
2
votes
2answers
1k 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 ...
0
votes
1answer
762 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
1
vote
1answer
205 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 ...
3
votes
0answers
616 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 ...
3
votes
2answers
391 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
743 views

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

I need to check memory leakage on my Solaris server.
1
vote
0answers
625 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 ...
0
votes
0answers
366 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 ...
3
votes
1answer
2k 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 ...
1
vote
0answers
468 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 ...
3
votes
1answer
498 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;}}'...
2
votes
0answers
2k 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 ...
3
votes
2answers
1k views

leaking memory with shell script and tty [closed]

I'm running a shell script on a raspberry pi to communicate with a arduino. Every hour my ram gets used up by about 50 megabytes more. The script itself just connects to ttyACM0 (the arduino's usb ...
6
votes
1answer
1k views

xorg memory leak

I've read this question but it doesn't seem to be the same issue, as the memory leak there is an order of magnitude smaller than mine and seems to be caused by Nvidia drivers.. Here's my top output at ...
1
vote
1answer
2k views

Java/malloc memory corruption error when running SDK Android Manager [closed]

I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through ...
2
votes
1answer
547 views

How to know what is trashing my Linux mint system?

My linux system is trashing occassionally. I have 4 GB of ram which is good even for Windows 8. All in all I have good specs. But occasionally the HDD light in the CPU is on for a long time and at the ...
3
votes
0answers
436 views

Is there some memory leak in Mint 16? Or else what is this?

So this has happened to me 3 times now: I have left my computer on over night and when I come back in the morning all of my ram is being used and about a third to a half of my swap space is full. ...
2
votes
2answers
679 views

Why is scdaemon ballooning out of control?

My system keeps getting wedged because an scdaemon process has been spawned that has grown to consume all free memory on the computer. (I do not use, and have never used, smart cards in the vicinity ...
7
votes
2answers
4k views

What is “kernel dynamic memory” as reported by smem?

While diagnosing low memory problems in my desktop machine (details at U&L) I've noticed that my noncache "kernel dynamic memory" is big: # smem -twk Area Used ...
4
votes
3answers
2k views

Discrepancy between reported used memory and sum of application memory usage

I'm running a desktop system that quite regularly suffers from lack of memory, this prompted me to investigate what causes the issue in the first place. Problem is, there's no single process that ...
17
votes
5answers
28k views

How can I find a memory leak of a running process?

Is there a way, I can find the memory leak of a running process? I can use Valgrind for finding memory leaks before the start of a process. I can use GDB to attach it to a running process. How could I ...
2
votes
2answers
2k views

Xvfb does not release memory

We want to create screenshots of websites for our software, and we are doing this by using CutyCapt with Xvfb. Unfortunatly every time CutyCapt takes a screenshot, the memory of Xvfb increases .. ...
2
votes
1answer
1k views

How can I monitor the load of a php script on a server?

We've got a website on our dedicated server which seems to be causing problems. Recently it has been crashing our dedicated server - it's very annoying. It will crash at random times. The tech ...
11
votes
4answers
5k views

xorg memory leaks

On my desktop Xorg leaks a lot of memory. I use to let this machine on for days (weeks, months ...), but about once a week I'm forced to restart xorg, because it is taking too much memory. Am I the ...
9
votes
5answers
5k views

How to track/fix a memory-related issue in a large C/C++ code on *nix systems

What strategy you use while tracking a memory-related issue? What tools do you use (open source as well as proprietary) to identify memory leaks, memory corruption etc? How would you track memory ...