Questions tagged [oom]

Linux Out-of-memory Killer

The OOM Killer is the Linux kernel's built in mechanism for protecting a machine from using up all memory.

107 questions
2
votes
1 answer

Weird console problem in linux, usually right before OOM

So I've noticed this happen more than once. If I remember correctly, this usually happens right before OOM, and/or kernel panic that if you type into a tty and then try to backspace it, the same characters are printed back in reverse. This has been…
2
votes
2 answers

lighttpd eating all memory and CPU

So my lighttpd was running fine for more than a year. Two days ago I decided to install Wordpress 3.0.1 (PHP was already in use by other tools). So after some hours of very few hits (i might get 10 unique visitors per day at max), the system almost…
weeheavy
  • 4,089
  • 1
  • 28
  • 41
2
votes
2 answers

How to run DNF without going OOM on GCP e2-micro

I'm trying to run Fedora Cloud Base 36 on an e2-micro in the US central region of Google Cloud Platform (GCP). I haven't upgraded packages in a couple months so I tried to do that today. When I run: $ sudo dnf upgrade the OS runs out of memory,…
jrefior
  • 123
  • 5
2
votes
0 answers

Explain of OOM killer logs

I have a question about the OOM killer logs. We are expecting a lot of OOM kills. The ecosystem My ecosystem looks like below: I have a server with 4 cores and 8 GB of RAM. I am running there the following most resource-consuming…
2
votes
1 answer

How to inspect why my service process be killed by Linux?

I have a vital service running a Ubuntu(20.04.1) server. Recently it is always killed by OS. At first I guess that probably is resulted by the OOM(out of memory) operation of OS, so I modified the systemd service unit file(my_app.service) of my app,…
Leon
  • 169
  • 9
2
votes
1 answer

oom_reaper: MongoDb out of memory

We run a small mongodb replica set on three bare metal servers (no virtualization, no docker/kubernetes) with Debian 11 and mongodb 5.0.6: machineA: 128GB RAM, 1TB disk, PRIMARY machineB: 128GB RAM, 1TB disk, SECONDARY machineC: 8GB RAM, 20GB disk,…
mr.simonski
  • 247
  • 4
  • 13
2
votes
2 answers

NFS server with out of memory

I have multiple machines sharing home directory via NFS share used by 6-10 users. All machines are used to run computational experiments including the one with NFS server. Although it is very rare but possible that some experiment may cause out of…
rmah
  • 29
  • 3
1
vote
0 answers

Linux out of memory killer kills process when there is more than enough memory available

We are running a 64-Bit Ubuntu and our 32GB of physical memory is split into 3 zones (DMA: 16MB, DMA32: 4GB and Normal: 30GB). According to the dmesg logs printed below our system ran out of free memory on the Normal zone. The logs show that free…
1
vote
3 answers

OOM kills a process while there is still a lot of available memory

I am aware that there are many threads like this one, but none of them actually give a methodology on how to read an OOM message. I have a db that is being monitored through NRPE for available memory, using a shell script check that calls free -m…
user3081519
  • 253
  • 2
  • 13
1
vote
1 answer

Java application gets killed in kubernetes while the resource limits and heap size are specified

Background A spring boot Java application is deployed in a kubernetes cluster and gets killed several times per day. I'm using openjdk:8u181-jre for my Java apps. Kubernetes version: v1.11.5 Node os: CentOS 7.4 x64 JAVA_OPTS are set according to…
leoleozhu
  • 113
  • 5
1
vote
0 answers

OOM killer kills process though page cache is never evicted

Our servers in production sometimes under load runs into the following issue (Linux 4.10): Application handling the load (webserver) is running at high load. A new job starts (e.g. cron). This requires a clone() system call, which fails to allocate…
Confused
  • 11
  • 1
1
vote
0 answers

"bash: fork: Cannot allocate memory" for any command - how to prevent this at OS level?

I was testing how an Ubuntu 16.04 machine handles low memory conditions and had several suspended jobs that that used up almost all the RAM on the server. I was still able to run normal bash commands when I left work last night. In the morning…
EM0
  • 370
  • 9
  • 24
1
vote
0 answers

Is there any legitimate reason to mlock all of a process's mmaped files?

I'm administering some Linux servers that are running an httpd based application developed by one of our apps teams. This is in EC2 and each host has 32GB of RAM. I've noticed that there is about once a day an OOM event on each of these hosts and…
Michael Martinez
  • 2,645
  • 3
  • 24
  • 35
1
vote
4 answers

Ansible throws an “ ERROR! A worker was found in a dead state ” error

When I run a playbook that simply copies a directory from one place to another, ansible throws ERROR! A worker was found in a dead state Error. After some googling, it looks like this is caused by the oom-killer killing the ansible process (but…
Sudh33ra
  • 179
  • 1
  • 2
  • 7
1
vote
0 answers

ec2 not connecting on public IP after volume resize

I am hosting two Wordpress sites on two different AWS EC2 micro instances running LAMP. I have been getting OOM kills and decided to resize the instances to small. Since increase the size of the instance I am only able to ssh into the instances…