Google Chrome Out of memory: oom-kill: Killed process

My Chrome getting crashed and log is like this on Linux

[1245635.766209] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-2000.slice/user@2000.service,task=chrome,pid=3713493,uid=2000
[1245635.766277] Out of memory: Killed process 3713493 (chrome) total-vm:1212165048kB, anon-rss:6359640kB, file-rss:0kB, shmem-rss:14308kB, UID:2000 pgtables:16912kB oom_score_adj:300

It just gets unresponsive. I’ve 16GB ram and 1GB swap yet it is not sufficient. It is an older system. How can I avoid this?

Increase your swap size or physical RAM size. Chrome and all other browsers use lots of memory depending upon web apps.

/proc/sys/vm/swappiness file tunning

The value in /proc/sys/vm/swappiness file controls how aggressively the kernel will swap memory pages. Higher values increase agressiveness, lower values descrease aggressiveness. The default value is 60 on a Debian or Ubuntu Linux.

sysctl vm.swappiness

Outputs:

60

To change it to say 40, use the sysctl command:

sudo sysctl -w vm.swappiness=40

See

Here are guides to increase swap space on Linux:

1 Like

I’d keep the swappiness at 1 since swapping is slow.

1 Like

I will add swap space. It is okay @rautamiekka I’m on fast NVME ssd but I know it will be bit slower. I can’t add a new 16GB ram due to cost.