Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [out-of-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Using overcommit_memory = 2 crashes a postgres container

I have a device which has Debian 11 installed on which Docker is running. On boot, it starts the Docker Daemon and the 9 containers. 8 of them are executing a C# software and the last one is a ...
Master DJon's user avatar
-1 votes
0 answers
28 views

Embedded kernel hit OOM. It's a storage offload card running storage software. Need RCA fro OOM with below logs

Apr 4 07:24:04 captain user.warn kernel: ncd invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0 ... Apr 4 07:24:05 captain user.warn kernel: active_anon:16415 inactive_anon:108 ...
nisarga lolage's user avatar
0 votes
0 answers
121 views

Why is mariadb.service not restarted by systemd after OOM kill

The mysql.service got killed by the OOM killer. While investigating the root cause I wanted to change the unit configuration to restart if killed. I was surprised to find Restart=on-abort already in ...
bluefish's user avatar
  • 181
0 votes
1 answer
25 views

How to analyse cause of memory usage not shown by htop

How can I best debug the following issue from here on? I have a python application running in a podman container which has plenty disk I/O due to a numpy memmap of two huge files, one input file ...
Semnodime's user avatar
  • 377
0 votes
1 answer
82 views

Why is Linux not using RAM but only Swap?

How can such an output of free -m be explained? total used free shared buff/cache available Mem: 32036 1012 225 3 8400 ...
theHacker's user avatar
  • 181
0 votes
1 answer
54 views

mega.nz Linux client megasync crashes with: Segmentation fault (core dumped)

When running the native Linux GUI client megasync, it keeps on crashing every few minutes with my main backup folder. Sometimes it takes a minute, sometimes half an hour, but eventually it crashes and ...
bizna's user avatar
  • 149
0 votes
0 answers
78 views

Understanding the reasoning behind an OOM invokation

I'm currently analyzing an OOM-killer log and there are some things that I cannot make sense of. Bear with me, I'm still new in the rabbithole of understanding the memory management in linux. The OOM ...
Noah Boegli's user avatar
0 votes
0 answers
113 views

OOM invoked regularly by PHP-FPM

I'm using EC2 instance t4g.micro which is arm64, with 1gb ram of the latest ubuntu. I'm using nginx with PHP-FPM for upload and convert pictures using latest image.intervention with GD. My PHP_FPM ...
user24198409's user avatar
2 votes
0 answers
38 views

"Fatal error: Unable to allocate enough memory" but a lot of unused swap

I am trying to run CRABS (specifically the Pairwise Global Alignment subsection, which invokes vsearch) on a 128GB RAM workstation, with OS=Ubuntu 23.04, kernel=6.2.0-39generic. I have no problems ...
user24029707's user avatar
0 votes
0 answers
32 views

User space swap

I have low physical memory 1GB in my VPS container based (LXC), therefore I can't change kernel parameter such as swap memory swappiness. Even though there is swap allocated from built-in VPS when I ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
43 views

Prevent OOM killer inside guest in LXC

I have a python program myprogram.py. I realized that my python program is being killed due to Out Of Memory (OOM). But, I noticed also that my VPS is inside LXC and has swap 1GB, when the memory full ...
Muhammad Ikhwan Perwira's user avatar
0 votes
2 answers
71 views

What does Memory allocation mean?

I use Linux Mint 21.2 and my machine is Intel Core i-7 6700 3.4GHZ. I wrote a prime test in Python, and I checked it with large numbers. It is like many tests, a variation of little Fermat, so I do ...
Lereu's user avatar
  • 133
2 votes
0 answers
81 views

linux: how to configure OOM killer to react sooner than 30 minutes after system freezes?

My Linux Mint often freezes when PC runs out of memory. I wonder why it takes ~ 30 minutes to unfreeze. Today I want to do something about it. dmesg after unfreezing gave: ... [Jan17 00:23] usb 2-2: ...
Alex Martian's user avatar
  • 1,065
0 votes
0 answers
120 views

How is the order of processes killed in cgroup v2 when out-of-memory?

I'm using cgroup v2 on Ubuntu 22.04 to limits users in a group. I'm wondering how the processes are killed when out-of-memory (OOM). For an instance: The computer has 100G memory. I have a group of 4 ...
hffqyd's user avatar
  • 1
2 votes
1 answer
143 views

Linux: Out of memory and a lot of memory neither used by processes nor available

in our production systems we are using Linux (kernel 5.10.55-051055-generic) on Intel NUCs (4GB RAM, 2GB swap) together with our Services run in Docker container. Those services are mainly small ...
ts_arivo's user avatar
1 vote
1 answer
417 views

Which is the trigger of OOM killer, free or availaible memory in Linux?

I am working on an embedded Linux system which is on SOC platform. I have 2 machines ran the same memory workload, and I got following memory output. Machine 1. total used ...
wangt13's user avatar
  • 443
2 votes
1 answer
122 views

How to prevent relayd on OpenBSD from using all memory

I have an OpenBSD "firewall" with relayd, where relayd starts to consume all available memory to the point that the system becomes completely non responsive. This happens when a user starts ...
VagrantPaladin's user avatar
2 votes
1 answer
541 views

Disable sysrq f (OOM-killer) but leave other sysrq keys operational

I was following a guide for automatically decrypting the hard drive on boot, using self-generated keys, and tpm2 variables, and near the end it makes this point that seems to make sense: https://...
user000001's user avatar
  • 3,665
0 votes
0 answers
246 views

The OOM killer kill process when there is enough memory available in linux

DotNET process got killed by OOM-Killer when ~150MB memory was available in system, and OOM min criteria is set 20MB. Note: we are using Linux version 5.4.3-yocto-standard+g852f89dfab60 TCPBufferRcv....
Ankit Khasa's user avatar
0 votes
2 answers
75 views

Is it possible to reserve resources for an always-up emergency console?

I strongly despise any kinds of automatic OOM killers, and would like to resolve such situations manually. So for a long time I have vm.overcommit_memory=1 vm.overcommit_ratio=200 But this way, when ...
bodqhrohro's user avatar
1 vote
1 answer
362 views

Linux build with custom config using all RAM (8GB)?

I am trying to compile the mainline Linux kernel with a custom config. This one! Running on a 64 bit system. At the last step, when linking the Kernel, it fails because it goes OOM (error 137). [...] ...
user2543740's user avatar
2 votes
1 answer
826 views

Receive a memory pressure event with cgroups v2 when no memory limit is set

With cgroups v1, it is possible to listen for events about memory pressure. According to the docs, one needs to Create a new eventfd Open memory.pressure_level for reading Open cgroup.event_control ...
Caesar's user avatar
  • 131
2 votes
1 answer
129 views

Linux uses 6.6Gi RAM for nothing

I'm trying to figure out why my Linux machine is so slow and I found this: $ free --human total used free shared buff/cache available Mem: 7,3Gi 6,...
Jan's user avatar
  • 123
0 votes
0 answers
149 views

How to make all child processes of a service follow the same OOM score adjustment

I've installed BOINC on a Debian 11 machine which has plenty of idle CPU but little free memory. Sometimes the OOM killer steps in, and it invariably kills something other than the busy BOINC ...
Nemo's user avatar
  • 584
0 votes
0 answers
210 views

Periodically print analysis for a long-running C++ program to detect memory leaks?

I have a C++ compiled program (an ELF binary) intended to run forever, similar to an HTTP server. I would like to use Valgrind to analyze the program for any memory leaks. However, Valgrind typically ...
locnnil's user avatar
0 votes
1 answer
458 views

Podman build fails with memory allocation error, and Docker cleanup failure

The podman build is failing with a Docker cleanup operation and memory allocation errors. My simplified Containerfile is: FROM docker.io/php:8.1-apache RUN apt-get update CMD ["...
Jim Leask's user avatar
  • 121
0 votes
1 answer
62 views

Can we use nand device for swap on embedded system?

Om my embedded system I want to use swapping . On my system we have Nand device only which I can use as swap . But I am not able to so since mkswap /dev/mtd8 returned error: mkswap /dev/mtd8 Setting ...
amrita kumari's user avatar
0 votes
0 answers
60 views

"Out of Memory" after adding an array in Kernel

I'm trying to trace get_page_from_freelist(). I defined a pointer of integer and initialized it with kmalloc() in mm/init_mm.c, and added some system calls to control it. But after this, I rebooted my ...
user561305's user avatar
1 vote
1 answer
2k views

How to configure ClamAV on Debian 11? (Need sample clamd.conf and correct location)

Since upgrading from Debian 9 to Debian10/11 Clamscan now runs the system out of memory immediately - instead of previously completing all scans successfully. But the /etc/clamav/clamd.conf file does ...
Slbox's user avatar
  • 271
1 vote
1 answer
139 views

Preserve kernel and GUI from freezing

I would like to prioritize stability over performance. So I would like my processes to hang instead of my whole OS when I hit hardware limits I would like to always let some resources for the kernel ...
aaa's user avatar
  • 167
9 votes
3 answers
2k views

Why do processes on Linux crash if they use a lot of memory, yet still less than the amount of swap space available?

I am using Linux 5.15 with Ubuntu 22.04. I have a process that uses a lot of memory. It requires more memory than I have RAM in my machine. The first time that I ran it, it was killed by the OOM ...
c--'s user avatar
  • 141
1 vote
1 answer
451 views

OOMScoreAdjust in .service files is ignored?

We're struggling with mysql being killed by OOMKiller since upgrading from Debian 9 to Debian 11. I see that several .service files have OOMScoreAdjust=### defined, but they don't seem to be honored, ...
Slbox's user avatar
  • 271
0 votes
1 answer
233 views

system freezes due to low memory, process killer not really working

Is there a way to prevent freezing of the system due to low memory? In KDE i keep running memory widget that lies through its teeth as any good politician does. And I cannot keep checking mem. Also, ...
atapaka's user avatar
  • 621
1 vote
0 answers
46 views

RAM required for kernel update

I have a small debian VM. For normal application usage, I only need about 1.5GB ram max (typical approx 500MB). However, I when I do an apt upgrade, sometimes I will trigger the OOM when there is a ...
eng3's user avatar
  • 279
-1 votes
2 answers
299 views

Firefox crashing Linux Mint 20 (ulyan) memory thrashing

Firefox 105.0.1 eats all my memory (mate-system-monitor reports 100%), regularly crashing Linux Mint 20 (ulyan), typically several times a week. My system completely locks up, mouse and keyboard ...
bs-'s user avatar
  • 43
2 votes
1 answer
1k views

Linux server high memory usage without applications

I have an Ubuntu 20.04.4 server with 32GB RAM. The server is running a bunch of LXD containers and two VMs (libvirt+qemu+kvm). After startup, with all services running, the RAM utilization is about ~...
user2653646'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
0 votes
1 answer
4k views

JAVA OPTS Xms Xmx MetaspaceSize MaxMetaspaceSize relationship with server resources

I have just started working with jboss application servers and recently we had a problem when trying to deploy an application in a new test server (RHEL 7), it happened that, when starting the jboss ...
miguel ramires's user avatar
2 votes
2 answers
4k views

Why oom_reaper when having vm.panic_on_oom = 1

From what I understand from its author : The OOM killer currently allows to kill only a single task in a good hope that the task will terminate in a reasonable time and frees up its memory. (…) It ...
MC68020's user avatar
  • 8,259
0 votes
0 answers
501 views

Memory runs out and PC freezes

I have been having issues playing video games on my PC, as I keep running out of RAM (8GB). When I run out of RAM, my displays and everything else freezes, except playing audio keeps looping. I have ...
tempacc's user avatar
  • 317
0 votes
1 answer
182 views

System ran out of memory during MX Linux installation

Hardware specs : Product Name HP ProBook 430 G4 Processor 1 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (x86) Memory Size 4096 MB System BIOS P85 Ver. 01.03 12/05/2016 Serial Number ...
SGriffeth's user avatar
1 vote
0 answers
45 views

Upgraded to 16gb memory, but still frequently running out and freezing [duplicate]

2 years using linux, reasonably comfortable and confident at it now, but this is something that keeps plaguing me and I have lost so many work hours because of freezes/lockups. My understanding of ...
John October Rage's user avatar
3 votes
1 answer
868 views

Clamav - can you only load the linux-specific definitions from /var/lib/clamav/*.cld?

We're investigating applications that seem to use large amounts of memory, one of those being clamav. We noticed that there are lots of av definitions for windows, osx, xls, doc, rtf etc. in /var/lib/...
Zack Schmidt's user avatar
2 votes
0 answers
130 views

Hint kernel that a particular process is safe to OOM kill? [duplicate]

Sometimes I run scripts that have a risk of making the server run out of memory. Is there a way to make kernel eager to kill them when this happens, so that the system regains stability as soon as ...
d33tah's user avatar
  • 1,361
0 votes
1 answer
135 views

How to fix improperly uninstalled software on Raspberry Pi (Buster)

First and foremost, I'm trying to purge an improperly uninstalled version of Intellij-Idea on Raspberry Pi and reinstall. I installed IntelliJ-Idea on the Raspberry Pi using the below page as a guide: ...
Vystrax's user avatar
1 vote
1 answer
621 views

oom_kill counter in CentOS 7

In Ubuntu 20.04 I can find oom_kill counter at file /proc/vmstat. Where I can find this metric in CentOS 7?
Georgy Potapov's user avatar
1 vote
0 answers
555 views

How to determine whether a process would run out-of-memory?

A testsuite has a couple of tests, that will consume a quite a lot of memory (11GB) or so. This is typically not a problem when running those tests on my developer machine, but within the context of ...
umläute's user avatar
  • 6,482
1 vote
3 answers
845 views

Creating swap when out of memory

Out of memory is a common issue and the official OOM is not efficient. Several other programs have been introduced to do the killing job faster. I wonder why there is no approach to creating swap ...
Googlebot's user avatar
  • 1,959
1 vote
0 answers
109 views

cgroups - controlling memory

I am trying to understand how cgroups and namespaces work. I have been able to get to a point where I can execute example programs in example cgroups and see how the memory resource can be controlled. ...
user1689430's user avatar
4 votes
2 answers
1k views

How to diagnose high `Shmem`? (was: Why `echo 3 > drop_caches` cannot zero the cache?)

I have a problem with my Linux machine where system now seems to run easily out of RAM (and trigger OOM Killer) when it normally can handle similar load just fine. Inspecting free -tm shows that buff/...
Mikko Rantalainen's user avatar

1
2 3 4 5