Questions tagged [out-of-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
44 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 ~...
0 votes
2 answers
106 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 ...
0 votes
0 answers
16 views

linux/LMDE5/Debian, Out of Memory to avoid 72+hrs of freeze? [duplicate]

since the beginning of the year, where I went from mint oldies, I tried to take a backview and try just linux mint, debian edition, to taste something a bit more stable than ubuntu-likes, plus openbsd....
  • 1
0 votes
1 answer
75 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 ...
0 votes
0 answers
34 views

Does PSI memory pressure for the user slice need radically different thresholds?

I am trying to understand the documentation for PSI memory pressure and the reality of this metric for the user session. The statistic apparently measures the percentage of tasks under a control group ...
0 votes
0 answers
47 views

Multiple Cron processes listed in Tasks State after an OOM killer run in EC2

An EC2 instance running Ubuntu 22.04 crashed during the night. When looking into the syslogs I found that there were multiple out of memory errors listed - normally the instance is running at 25% ...
0 votes
0 answers
55 views

In what order does kernel reclaim memory?

As far as my knowledge goes, when Kernel requires more memory for allocation for the processes it does a few things before entering OOM state. Such as freeing SlabReclaimable, Dropping annonymous page ...
1 vote
2 answers
607 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 ...
  • 3,930
0 votes
0 answers
57 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 ...
  • 77
0 votes
0 answers
38 views

unexpected reset above 90% /tmp usage

There is 1GB /tmp folder on an embedded system with 8GB RAM. No swap is configured. If /tmp grows to its limits, I assume OOM-killer does its job and one random service is killed, together with the ...
0 votes
1 answer
93 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 ...
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 ...
3 votes
1 answer
262 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/...
2 votes
0 answers
43 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 ...
  • 1,339
0 votes
1 answer
43 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: ...
0 votes
1 answer
158 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?
0 votes
0 answers
169 views

OOM killer invoked but plenty of RAM

I've got an ARM-based Linux kernel v5.4.3 256 MBytes of RAM system with no swap space enabled, and I occasionally see processes get killed by the OOM-killer even though there is plenty of RAM ...
1 vote
0 answers
150 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 ...
  • 6,021
1 vote
3 answers
454 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 ...
  • 1,799
1 vote
0 answers
35 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. ...
2 votes
0 answers
245 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/...
-5 votes
1 answer
91 views

Out of Memory Killer OOM and Swap [duplicate]

Greetings to the service of dear masters and masters I have a question : Thanks for pointing me to a process called Out of Memory Killer in Linux, or OOM for short, how it works and what the processes ...
1 vote
1 answer
316 views

xz: OOM when compressing 1TB .tar

I'm trying to compress a large archive with multi-threading enabled, however, my system keeps freezing up and runs out of memory. OS: Manjaro 21.1.0 Pahvo Kernel: x86_64 Linux 5.13.1-3-MANJARO ...
  • 113
0 votes
0 answers
850 views

Kernel panic during shutdown: "System is deadlocked on memory"

I am running Debian Buster within a VM with 70 MiB of memory allocated to it. Curiously, it can boot and run fine, but panics when I try to shut it down. Here is the log of the panic, which I captured ...
  • 2,158
1 vote
0 answers
78 views

What could account for a very, very large change in pid's in a short amount of time?

On an Ubuntu 20.x server, we are having some OOM Killer issues, where it kills a Java process. We have been unable to find any memory leaks. But this morning, we got a rare gift, which is two oom-...
1 vote
1 answer
214 views

What does order=0 mean in mem-info data (Orders are powers of two allocations, so does it mean no pages were being allocated?)

foobar.exe invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0 What is an order=0 allocation? That's less than one page, so is it like a kmalloc32 or something smaller than page_size? ...
2 votes
0 answers
138 views

Linux kernel with ZFS eating my ram (2x of arc_max)

First up, It seems my kernel is using way too much ram $ grep Slab /proc/meminfo Slab: 21794184 kB See all of /proc/meminfo and /proc/slabinfo $ free -h total used ...
1 vote
0 answers
62 views

Why oom may still happen even when overcommit_memory is set to 2?

2: always check, never overcommit In mode 2 (available since Linux 2.6), the total virtual address space that can be allocated (CommitLimit in /proc/meminfo) is calculated as ...
  • 287
0 votes
2 answers
82 views

How can I kill a process that kills the computer if it hangs?

I would like to write a script that detects when my Ubuntu machine hangs for more than 10 seconds, for example, and kills the offending process so I don't have to force-power-off my device. The ...
  • 15
0 votes
1 answer
1k views

Identify high memory allocator / leaking process in Linux causing oom (out of memory) kernel killing processes

I have come across plenty of info on oom in general but not much to identify the root cause of the issue. OOm killer kills processes based on its scoring but the process it kills need not be the one ...
  • 101
5 votes
1 answer
458 views

Can ** (bash's globstar) run out of memory?

Can using bash's globstar (**) operator cause an out of memory error? Consider something like: for f in /**/*; do printf '%s\n' "$f"; done When ** is being used to generate an enormous list ...
  • 221k
1 vote
0 answers
277 views

How to best hard-limit my Firefox' memory hogging?

I use Firefox 83 on my Devuan GNU/Linux Beowulf desktop. Unfortunately, for reasons which are not clear to me, FF has memory issues which cause it to gradually take up more and more of my system's ...
  • 7,723
2 votes
1 answer
648 views

RAM Free decreases over time due to increasing RAM Cache + Buffer

When visualizing some memory related metrics on server level, I get a chart which looks like this: The area below the blue line is RAM Used. The area below the red line and above the blue line is RAM ...
  • 125
0 votes
0 answers
104 views

Finding root cause for out of memory killer

Recently, I stumbled upon this error which, I can understand happening because of Out Of Memory , but not sure who is requesting memory. [ 8539.677000] syslog-ng invoked oom-killer: gfp_mask=0xd0, ...
  • 63
0 votes
1 answer
233 views

How to free up disk space when the disk is full?

I recently tried to install a large program and inadvertently filled up my Linux partition. I am now seeing a bunch of errors stemming from this issue. I tried to empty the trash, but I get an error ...
  • 101
4 votes
2 answers
1k views

Linux OOM randomly when there is still free memory

I got the OOM problem randomly (about once per month), but it seems that there is enough free memory. I can not understand the reason and how to resolve it .... vm.min_free_kbytes = 90112 Linux xxx-...
  • 141
3 votes
1 answer
995 views

Force use Swap over Memory

I have a Debian server that I'm really cheaping out on, but for some reason the Java processes use all the memory then throw a "OutOfMemoryError" rather than using the swap space. I've got ...
1 vote
0 answers
107 views

gkrellm: can you display a chart of the memory usage?

little background: I had some processes on a machine with 128GB memory that reported python memory allocation errors (the machine ran out of memory). My code only uses like 1-3GB memory... so I should ...
15 votes
4 answers
26k views

Python programs suddenly get killed

I'm running some python programs that are quite heavy. I've been running this script for several weeks now, but in the past couple of days, the program gets killed with the message: Killed I tried ...
1 vote
0 answers
829 views

CentOS 7 yum-cron - Out of memory: Kill process or sacrifice child

I am on centos 7 hosted on a vps. The server would stay alive for a couple of days before everything gets killed by OOM. A restart fixes things, but it's a temporary fix. The error (there is a full-...
0 votes
0 answers
42 views

Seelnium crashes since RAM is not enough... but what is RAM used for?

We run Selenium (JAVA) with headless Chrome. This all takes about 300 MB RAM. VPS has 1 GB RAM but selenium "crushes": Exception in thread "pool-1-thread-115" org.openqa.selenium....
0 votes
1 answer
384 views

Explanation for "Killed Process"

The system has killed a process due to "Out of memory" but I cannot understand these messages. I am not able to find the memory issue. [Mon Jul 20 21:20:39 2020] crawler invoked oom-killer: ...
  • 103
0 votes
3 answers
341 views

What is done when memory gets filled: One page eviction or an entire process is killed?

The question is simple but I haven't found information (to be more precise, I have found information about both options (options below) but without saying which one is used in each situation). Option ...
  • 5
1 vote
1 answer
321 views

When kernel space is used up, will OOM killer be triggered?

We know if a user space program keeps malloc(), it may finally trigger OOM killer. But what about kernel space, when kernel space memory is used up, will it trigger OOM killer to free memory? Thanks
0 votes
2 answers
360 views

Why does Linux become unresponsive when a large number of memory is used (OOM cannot be triggered)

I am using a CentOS 7.5 instance in AWS which has 16 CPUs and 32GB memory. I found when I run the following command, the whole system will be unresponsive, I cannot run any commands on it anymore, ...
  • 103
4 votes
1 answer
803 views

Trigger a script when OOM Killer kills a process

I do a lot of work on in the cloud running statistical models that take up a lot of memory, usually with Ubuntu 18.04. One big headache for me is when I set up a model to run for several hours or ...
1 vote
2 answers
160 views

How can I prevent repeated malloc from slowing down system to a halt before the program is killed with SIGKILL?

Obviously I don't typically run: #include <stdlib.h> int main() { while (malloc(50)); return 0; } But I have been attempting to compile large projects. When running cmake, my computer'...
  • 111
0 votes
0 answers
609 views

Unix SORT not respecting its memory limit

I am facing an issue regarding sort being killed due over usage of memory and can not understand why it surpasses the given limit by a significant margin. Context: Available physical RAM: 8GB ...
1 vote
0 answers
21 views

manually pre-assign which process should be killed by oom

I have a process that writes large files to /tmp which happens to be a tmpfs. When starting the process, I don't know if I have enough RAM. The process doesn't use excessive RAM itself. So I have to ...
  • 748
1 vote
0 answers
365 views

Why is process killed with free memory in other zones?

I've read in my syslogs that the Out of Memory Killer is terminating processes when the "Normal" memory zone is underneath the minimum limit, but I still have tons of free memory in the "HighMem" zone....