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.

100 questions
7
votes
5 answers

Prevent Linux's OOM from killing apache on our webserver

We have a debian linux webserver. It's just running apache2. Our mysql server is on another host. However we sometimes run cron tasks on the webserver to do regular tasks. However recently one of the cron tasks had a bug and started to gobble up the…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
6
votes
3 answers

OOM invoked with plenty of free swap

I am running an ARM router with i2p and tor on it - a Netgear R7000. Of course I've added a full 512 MB of SWAP to it to prevent OOMs, understanding that it could slow down the system... But then I still get OOM killer starting with plenty of SWAP…
Evengard
  • 234
  • 2
  • 11
6
votes
4 answers

LInux OOM custom response

I'm running Apache webserver and would like to improve a little bit how the OOM situation is handled. I'm avare of the OOM scores and already did some customizations in that matter so when something bad happens, Linux is killing the correct…
dave
  • 215
  • 1
  • 4
  • 11
6
votes
1 answer

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). It has sufficient RAM: [root@tbn-6 src]# free…
foss4me
  • 63
  • 4
5
votes
1 answer

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 message about the apache and syslog Server version:…
user545235
  • 51
  • 2
5
votes
1 answer

Disable Linux kernel from killing postgresql process

I have standard 'out-of-the-box' installation of Linux version 3.0.1.stk64 (dfn@localhost.localdomain) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Sat Aug 13 12:53:46 EDT 2011 It has postgresql 8.4 installed as (start…
Martin
  • 151
  • 4
5
votes
3 answers

what do these messages suggest (linux kernel dump, seems OOM)?

I got the following errors from system log (/var/log/messages). what they indicate? And how to solve them? Sep 30 05:19:35 node23 kernel: Mem-info: Sep 30 05:19:35 node23 kernel: Node 0 DMA per-cpu: Sep 30 05:19:35 node23 kernel: cpu 0 hot: high 0,…
Mickey Shine
  • 929
  • 4
  • 16
  • 33
4
votes
2 answers

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 is causing that and what can be done to prevent…
MikeSkril
  • 63
  • 1
  • 1
  • 7
4
votes
2 answers

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 mysqld each 10 minutes. I was able to gather some…
Ifnot
  • 589
  • 4
  • 7
4
votes
2 answers

What's the technique to find out bottleneck?

I setup a wordpress on Digital Ocean for the smallest droplet for a few months. Recently, my blog gone viral (1000+ facebook shares) and the server take 50+ seconds to respond.(Google Analytics show there's around 40 people on my blog at the same…
尤川豪
  • 143
  • 1
  • 5
4
votes
4 answers

Ubuntu how to detect if OOM killer have run

We use Nagios to monitor our servers. Now.. linux uses all the RAM we give them so there is no way to detect if we are about to run out of memory. We have a couple of times had some server crashes due to excessive memory usage. Is there any way to…
Ronnie Jespersen
  • 221
  • 5
  • 13
4
votes
1 answer

How to find which cgroup caused OOM?

I'm using cgroup to partition my processes and I'm getting Out Of Memory messages in my kernel logs. However, I can't find which partition causes them. I've checked the memory controller cgroup but there are no obvious ways to use it. The problem…
Cyberax
  • 249
  • 1
  • 5
4
votes
2 answers

OOM killer goes insane

On our cluster we would sometimes have nodes go down when a new process would request too much memory. I was puzzled why the OOM killer does not just kill the guilty process. The reason turned out to be that some processes get -17 oom_adj. That…
Aleksandr Levchuk
  • 2,415
  • 3
  • 21
  • 41
3
votes
2 answers

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 any real explanations. Is it really because the…
3
votes
2 answers

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 the kernel log: 2017-09-14 19:53:51.252365 kernel:…
obeattie
  • 284
  • 6
  • 13