How to Fix ‘Systemd-Journald High CPU Usage’ in Ubuntu

Monitoring system resources using top or htop on an Ubuntu desktop or cloud instance only to discover systemd-journald consuming 80% to 100% of a CPU core degrades performance, causes cooling fans to spin at maximum speed, and exhausts battery reserves. In this state, terminal responsiveness slows and overall system performance suffers.

The systemd-journald service collects and stores system logging data. Excessive CPU consumption almost always signals a runaway background service trapped in an infinite crash loop flooding the journal socket with thousands of log entries per second, corrupted binary journal databases, or unrestricted log size quotas. Here is how to diagnose and resolve this CPU spike.

Identify Runaway Services Flooding the System Journal

In almost all cases, systemd-journald consumes high CPU not because of internal engine bugs, but because another application or kernel driver is hammering the logging pipeline continuously.

  1. Open a terminal and stream incoming system logs in real time:
    sudo journalctl -f
  2. Observe the console output. If lines scroll past uncontrollably with rapid repetition, identify the specific process name, daemon, or hardware device generating the flood (common culprits include misconfigured audio daemons, failing network adapters, or crashing snap containers).
  3. Press Ctrl + C to exit the stream.
  4. Query the top log contributors across recent boots:
    sudo journalctl -xb | awk '{print $5}' | sort | uniq -c | sort -nr | head -n 10
  5. Once the offending service is identified, stop or reconfigure it cleanly (e.g., sudo systemctl stop <servicename>).

Vacuum and Purge Corrupted Journal Logs

Over time, binary journal log files can accumulate index errors, forcing systemd-journald to expend excessive CPU cycles attempting to parse fragmented log volumes.

  1. Verify the current disk space consumed by systemd journals:
    journalctl --disk-usage
  2. Vacuum historical archives, retaining only recent logs:
    sudo journalctl --vacuum-size=100M
  3. Alternatively, vacuum logs by time retention:
    sudo journalctl --vacuum-time=3d
  4. Rotate the active journal files to commit clean binary headers:
    sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service

Configure Strict Log Limits in journald.conf

Restricting maximum memory usage and disk allocation prevents journald from consuming unbounded processor and memory caches.

  1. Open the journal configuration file in a terminal text editor:
    sudo nano /etc/systemd/journald.conf
  2. Locate the [Journal] section and uncomment or add the following directives:
    SystemMaxUse=200M
    SystemMaxFileSize=50M
    RateLimitIntervalSec=30s
    RateLimitBurst=10000
  3. Setting rate limits instructs systemd-journald to drop excessive log bursts automatically, protecting CPU availability during runaway daemon crashes.
  4. Save changes by pressing Ctrl + O and exit via Ctrl + X.
  5. Restart the journal daemon to apply the new configuration:
    sudo systemctl restart systemd-journald
  6. Run top to confirm that CPU utilization settles back to normal levels below 1%.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.