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
67
votes
3 answers

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 of RAM with 2 GB swap. It is mostly idle and should…
dataless
  • 833
  • 7
  • 11
40
votes
6 answers

How do I prevent Linux from freezing when out of memory?

Today I (accidentally) ran some program on my Linux box that quickly used a lot of memory. My system froze, became unresponsive and thus I was unable to kill the offender. How can I prevent this in the future? Can't it at least keep a responsive…
johv
  • 501
  • 1
  • 4
  • 4
38
votes
4 answers

Turn off the Linux OOM killer by default?

The OOM killer on Linux wreaks havoc with various applications every so often, and it appears that not much is really done on the kernel development side to improve this. Would it not be better, as a best practice when setting up a new server, to…
Peter Eisentraut
  • 3,575
  • 1
  • 23
  • 21
30
votes
7 answers

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. The VM has 3 GB of absolutely free unfragmented…
Coder
  • 425
  • 1
  • 4
  • 6
17
votes
4 answers

Linux oom situation (32 bit kernel)

I have continous oom&panic situation unresolved. I am not sure system fills up all the ram (36GB). Why this system triggered this oom situation? I suspect it as related to lowmem zone in 32 bit linux systems. How can I analize the logs from kernel…
seaquest
  • 668
  • 2
  • 11
  • 25
14
votes
1 answer

How is kernel oom score calculated?

Looked on The Google, and couldn't find anything that explained how the score in proc//oom_score is calculated. Why use this score instead of just using the total memory used?
James Kingsbery
  • 299
  • 1
  • 2
  • 8
14
votes
2 answers

OOM despite available memory (cache)

We've been running into the OOM killer despite nearly half of our memory being used for the FS cache. We've been logging memory stats once per minute (as reported by top), but there seems to be plenty of availability. ... Mem: 15339640k total,…
Yang
  • 1,655
  • 6
  • 20
  • 35
12
votes
4 answers

How to use kdump/crash to investigate an OOM issue?

The problem A server crashed after multiple "Out of memory" messages and I am trying to pinpoint the culprit. If it is in userland - which process. If it is in the kernel - which kernel module. Details I am trying to find out how to use the crash…
chutz
  • 7,569
  • 1
  • 28
  • 57
11
votes
2 answers

Get a core dump of/debugging a process killed by oom-killer

Is there any way to get a core dump of, or be able to debug a process that has been killed by oom-killer? Or even set oom-killer to try to kill a process using ABRT instead?
TrapAlice
  • 111
  • 1
  • 1
  • 4
11
votes
3 answers

OOM killer killing things with plenty(?) of free RAM

The OOM killer seems to be killing things despite having more than enough free RAM on my system: (Full resolution) (Full resolution) 27 minutes and 408 processes later, the system started responding again. I rebooted it about an hour after, and…
Kyle Brantley
  • 1,321
  • 1
  • 11
  • 14
10
votes
2 answers

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 shared buffers cached Mem: 14G …
Mike Conigliaro
  • 3,105
  • 2
  • 24
  • 24
10
votes
3 answers

Why are applications in a memory-limited LXC container writing large files to disk being killed by the OOM?

EDIT2: This problem appears to exist as well under 3.8.0-25-generic #37-Ubuntu SMP EDIT: I modified the question from the original title of "Why would the Linux Out of Memory manager be triggered by writing to a file with dd?" to better reflect that…
UsAaR33
  • 1,036
  • 3
  • 11
  • 20
9
votes
1 answer

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 this answer the first memory request asked for…
Patrick
  • 313
  • 3
  • 10
9
votes
5 answers

How to reliably take Java Heap Dumps?

My team is running into difficulties when trying to take good heap dumps triggered by OutOfMemoryErrors. For specific reasons we are currently taking the dumps with jmap called from a bash script instead of using the HeapDumpOnOutOfMemoryError flag.…
karlcyr
  • 153
  • 1
  • 2
  • 8
7
votes
1 answer

Forensic Analysis of the OOM-Killer

Ubuntu's Out-Of-Memory Killer wreaked havoc on my server, quietly assassinating my applications, sendmail, apache and others. I've managed to learn what the OOM Killer is, and about its "badness" rules. While my machine is small, my applications are…
Oddthinking
  • 262
  • 2
  • 15
1
2 3 4 5 6 7