Questions tagged [oom]

Linux Out-of-memory Killer

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

mariadb oom-killer on CentOS8 in EC2 t2.micro instance

I seem to be having memory problems in my t2.micro instance (1GB) running nginx, mariadb, php and WordPress. I can see that mariadb.service is being killed regularly (I have used grep -e kill /var/log/...
0
votes
0answers
92 views

RHEL 8. linux OOM killer invoked to kill postgres process

Database is going to recovery mode whenever the OOM killer is invoked on the postgres process. /var/log/messages output with respect to the issue oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),...
0
votes
1answer
67 views

Daily Apt Upgrade causing oom-killer to kill my java server

My server has died several times in the middle of the night because of this. How much memory is apt-upgrade asking for? Is it being reasonable? I'm trying to decipher the logs here. Any help or ...
0
votes
2answers
56 views

Why cannot use buff/cache?

It seems mysqld allocates too much memory as buff/cache: free -m total used free shared buff/cache available Mem: 990 448 96 36 ...
-1
votes
1answer
43 views

When the kernel says “Out of memory: Killed proces…” does it mean real memory or virtual memory?

Looking at journal -xe for the reason(s) a process is killed, the message comes up in red "Out of memory: Killed process..." but it doesn't say whether the limiting resource is virtual ...
0
votes
0answers
42 views

Missing swap usage in OOM killer logs

From the following log, I understand that the swap is full and probably this is why the oom killer is invoked. But when I add the swapents column I can't even remotely explain how the swap is full. ...
0
votes
0answers
20 views

Debugging OOM (core dump?) [duplicate]

I'm working on a piece of server software. Usually it runs with RSS ~250 megabytes, but occasionally gets killed by the OOM, and looking at kernel log, it happens when the RSS grows to about 700 ...
0
votes
0answers
91 views

What contributes to memory “usage” in the OOM killer output in kernel 5.4

This is one of recent OOMs I've captured Nov 3 03:00:24 node kernel: [ 457.525768] memory: usage 98304kB, limit 98304kB, failcnt 0 Nov 3 03:00:24 node kernel: [ 457.525769] memory+swap: usage ...
6
votes
1answer
135 views

fio 3.23 core dumps when bench-marking many small files

I have been asked to come up fio benchmark results for this test dataset: 1048576x1MiB. So, overall size is 1TiB. The set contains 2^20 1MiB files. The server runs CentOS Linux release 7.8.2003 (Core)...
0
votes
1answer
104 views

How do I track down a mysql memory issue on a server running a single WordPress site?

I'm having a weird issue. A few times a week, a website I'm running on Amazon Lightsail comes to a crashing halt and becomes IO bound (I can't usually use ssh when this happens) and the server runs ...
2
votes
4answers
344 views

mysqld crashing almost every hour - mysqld invoked oom-killer

I am running wordpress on a centOS digital ocean droplet my mysql keeps crashing almost every hour -- with an out of memory error manually restarting mysqld brings it back up via sudo service mysqld ...
2
votes
2answers
1k views

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 ...
0
votes
1answer
890 views

Kubernetes Pod OOMKilled Issue

The scenario is we run some web sites based on an nginx image in kubernetes cluster. When we had our cluster setup with nodes of 2cores and 4GB RAM each. The pods had the following configurations, cpu:...
0
votes
1answer
153 views

Kill the most memory-hungry process when memory gets low [closed]

Sometimes my Linux desktop, laptop, or server run out of RAM because the experimental software I work with occasionally tries to use more RAM than I have available. When this happens, the system and ...
0
votes
0answers
371 views

Out of memory in Linux server killing my tomcat server

From last night I am getting below unexpected behaviour. Out of memory: Kill process 1740 (java) score 128 or sacrifice child Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.393549] Out of ...
5
votes
1answer
687 views

apache httpd process be killed by kernel oom

some apache httpd process's memory and cpu usage too high, be killed by kernel, but I don't know why httpd use such many memory. I need some method to analyse or some method to reproduct. some ...
0
votes
0answers
228 views

Why is systemd-resolve killing my java server?

I've been running into this problem where every few days one of my java servers is just dying. To figure out why, I ran cat /var/log/syslog which produces: Sep 21 06:36:24 ip-172-31-42-5 systemd-...
0
votes
1answer
176 views

OOM despite the large amount of free SWAP

During some ML training htop shows usage of all RAM (16GB) and only 2G (out of 16GB) of SWAP when OOM happens. dmesg shows: [pon sie 12 11:53:44 2019] Purging GPU memory, 0 bytes freed, 131072 ...
0
votes
1answer
532 views

What Java -Xmx setting can I reasonably expect to work on an AWS EC2 Ubuntu server?

What is your experience? Can you confirm my experimental findings? Can I generally use total RAM - 600 MB, or 0.4 * total RAM? Or is it always trial and error, and hoping that it is low enough? ...
2
votes
0answers
59 views

What abbreviations in OOM Killer memory statistics report means?

When OOM Killer or kernel reports memory state it uses the next abbreviations Node 0 DMA: 26*4kB (M) 53*8kB (UM) 33*16kB (ME) 23*32kB (UME) 6*64kB (ME) 7*128kB (UME) 1*256kB (M) 2*512kB (ME) 0*...
1
vote
0answers
335 views

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 ...
0
votes
2answers
847 views

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 ...
1
vote
1answer
1k views

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 ...
2
votes
2answers
11k views

Enough memory but OOM killer invoked?

It has been a long time since my old friend the OOM killer came to visit me. Now it is coming by once a week and I cannot figure out why it’s triggered. It doesn’t seem that I’m missing memory. What ...
4
votes
2answers
216 views

Out of memory at 18% usage : where the ram goes?

This is related to : Out of memory at 72% usage It looks to be the same problem but the question is slightly different : Where my memory goes ? I have 18% memory usage and my OOM Killer is killing ...
3
votes
2answers
2k views

Linux OOM-killer acting despite plenty available memory

Once a week or so the OOM-killer shoots down a postgres process in my server, despite that 'free' states it has plenty of available memory. I have read several threads here and there, but cant see ...
1
vote
0answers
456 views

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 ...
1
vote
0answers
3k views

“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 ...
2
votes
1answer
3k views

Linux OOM: Trying to understand memory statistics / mismatch with expected values

I am trying to understand why the OOM killer has reaped a process on a KVM virtual machine running with 1 gigabyte of memory. While I do already know that running Linux machines without swap is not ...
0
votes
0answers
342 views

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 ...
3
votes
2answers
7k views

Long page allocation stalls on Linux – why does this happen?

I have a problem (which I can reliably reproduce) on a bunch of Linux hosts, where the system becomes completely unresponsive after a process aggressively consumes memory. I see things like this in ...
2
votes
2answers
668 views

GKE's Container-Optimized OS Out-Of-Memory freezes

I have issue with Container-Optimized OS on GKE. If I run this simple command https://pastebin.com/raw/0WPAnAzn to consume all the RAM, at some point host freezes and doesn't respond to anything. ...
0
votes
1answer
279 views

Number of httpd processes and prefork.c

Hi I got OOM killer problems which caused: [mpm_prefork:error] [pid 18103] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process I had to restart the server to get it working. In /...
0
votes
1answer
751 views

VmRSS used to only about 25%, yet oom-killer strikes

I have a dedicated MySQL server equipped with 128 GB RAM. MySQL recently gets killed by the oom-killer, although MySQL is configured to use 95 GB in the worst case. In my research I came across this: ...
0
votes
1answer
8k views

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 ...
2
votes
1answer
6k views

OOM killer invoked despite tons of memory available? [duplicate]

I have a server where the OOM killer has been invoked once or twice almost each night since two weeks ago. The server should have more than enough memory it could free (cache/buffers, inactive_file ...
9
votes
1answer
6k views

Linux process killed even though enough memory available

I am investigating why two of our processes were killed by the Linux OOM killer - even though there seems to have been enough RAM and plenty of SWAP available at both times. When I interpret it as by ...
3
votes
2answers
3k views

Slab reclaimable memory is not freed when needed

Correct me if I am wrong, but to my understanding slab reclaimable holds cached kernel objects which can be freed if needed. So if application needs to allocate more space, even if the 'free' memory ...
0
votes
1answer
426 views

OOM Killer on xenserver - 2832MB memory free - killing xapi

I am trying to understand why OOM killer starts killing processes when there is plenty of memory free on the server: Result of uname -a: Linux hostname 2.6.32.43-0.4.1.xs1.8.0.835.170778xen #1 SMP ...
1
vote
0answers
93 views

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 ...
10
votes
2answers
4k views

Baffling Memory leak. What is using ~10GB of memory on this system?

After running for about 18 hours, this system is using ~10GB of memory, causing the OOM-killer to be triggered when we run our usual tasks: # free -h total used free ...
0
votes
2answers
637 views

Linux - Logging process list during high memory usage

I'm trying to diagnose occasional spikes in memory usage on a Linux server. If the spikes are high enough the OOM Killer kicks in, which results in /var/log/messages containing a useful dump of the ...
3
votes
1answer
1k views

Adjust oom_score at process launch

I've got a few servers that have begun oom-killing their backup processes and, while I understand that encountering the oom condition is quite bad in itself, I need this process to not die so that ...
2
votes
3answers
1k views

AWS WordPress site - OOM kills Apache

This question was originally asked on StackOverflow.com, and I've duplicated it to the more appropriate ServerFault.com site. The original question, which I've voted to close, can be found here I ...
1
vote
1answer
699 views

How can there ever be an OOM scenario on Linux (heuristics behind OOM killer)?

I am aware of the concept of virtual memory. And with demand paging (depending on vm.overcommit_memory) you are able to allocate more memory than available RAM. Unless you "touch" a page nothing ...
1
vote
1answer
492 views

HaProxy suddenly crashing on new Ubuntu Images (same config works elsewhere)

I have been using HAProxy for about two years with the same working configuration. I've installed HaProxy multiple times over the last week on Ubuntu 14.04, 15.10 and I am getting out of Memory ...
28
votes
7answers
26k views

How to get the Linux OOM killer to not kill my process?

How do I get the Linux OOM killer to not kill my processes when physical memory is low but there is plenty of swap space? I have disabled OOM killing and overcommit with sysctl vm.overcommit_memory=2....
1
vote
1answer
603 views

OOM score adjustements

On Ubuntu 12.04/Java 1.7 I have been reading/searching about OOM killer and generally understood what "proc" man page says especially oom_adj part. It all started because my important "MQ listeners" ...
67
votes
3answers
7k views

Rsync triggered Linux OOM killer on a single 50 GB file

I have a single 50 GB file on server_A, and I'm copying it to server_B. I run server_A$ rsync --partial --progress --inplace --append-verify 50GB_file root@server_B:50GB_file Server_B has 32 GB ...
0
votes
0answers
153 views

OOM Killer when tcpdump is run in system with low memory

I am working on an embedded system with limited memory. Here is the dump from my vmstat: procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff ...