Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Diagnose High CPU and OOM on Linux

When a VPS feels slow or processes restart, it is often CPU saturation or the OOM Killer reclaiming RAM.

Steps

  1. Check load and memory:

    uptime
    free -h
    nproc
  2. Find the hot process with htop or ps:

    htop
    ps aux --sort=-%cpu | head
    ps aux --sort=-%mem | head
  3. Look for OOM events in the kernel log:

    sudo dmesg -T | grep -i -E 'oom|killed process' | tail
    sudo journalctl -k -b | grep -i oom | tail
  4. If a specific service fails, check its journal:

    sudo journalctl -u SERVICE_NAME -b --no-pager | tail -n 80

Tips

  • Load much higher than your vCPU count for minutes means a real CPU queue.
  • Frequent OOM: shrink the app footprint or add RAM — swap only buys time.

ext step

Scale CPU/RAM in minutes: Deploy your Cloud VPS.

Related guides