Oom and freeze of system

Hi All.
I’m new to this forum, but using Manjaro for some time.
I’m developer working with Intellij. I have at last once a day issue with oom, It’s crashing intellij, but it’s links to docker. I increase memory limits on intellij, but this not help. My laptop has 16gb ram so this shouldn’t be issue, but is. I try to investigate but running out of ideas what could be issue. I slowly thinking to switch distro, but have already lot’s of setup and don’t want to do this from scratch. So any idea what to look for and where to solve this issue? I try to keep system up to date.

first guess (without having info on your system):
Do you have swap configured?
Either a swap file or a swap partition?

2 Likes

It should actually give a code in that oom message that can help to narrow it down.

I don’t think that will solve anything - but of course - if you must.

Thoughts on what to do

Use the JetBrains toolbox to keep your tools up-to-date - it is often better than using the community versions in the repo.

JetBrains Toolbox

I am using JetBrais tools - but not the community editions - and I recall only one incident where the tools would shut down unexpectedly - I could use the EAP version until the fix appeared in the ordinary versions…

Docker

Docker is an interesting creature but if you do not tame the instance(s) it it will consume the available memory. Use the docker-compose.yml to define a ressource limit - example

services:
  production:
    image: my_image:latest
    deploy:
      resources:
        limits:
          cpus: '4'
          memory: 4G

swap

Another issue may appear if you have no swap configured - best configured on a separate disk but if that is not possible then a separate partition.

See → Swap - Manjaro

Enable zswap or zram (not both) - zswap works with compressed memory, using the physical swap as fallback.

example from my system (added in /etc/default/grub)

GRUB_CMDLINE_LINUX="nowatchdog mitigations=off zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold"

See the following on the Arch Wiki

3 Likes

Did you verified this with htop?

When you see your ram is full to the brim before it crashed, there is no other way as to extend your ram as with a swap partition or swap file.

As Nachlese and Linux-aarhus mentioned already.

1 Like