# Scratchpad: CPU Investigation (2026-02-16)

## Issue
- Constant ~50-60% CPU usage over 12 hours
- Saw-tooth pattern on Hetzner graphs

## Root Cause Found
- `openclaw.service` was in a crash-restart loop (42,000+ restarts)
- Each restart consumed ~3 seconds of CPU
- Service was trying to use `systemctl --user` which failed on headless server

## Resolution
- Disabled the broken `openclaw.service`
- Main gateway process (`openclaw-gateway` PID 349997) runs independently
- Chrome headless restored as persistent service

## Lesson Learned
- Check for duplicate service definitions when diagnosing CPU issues
- journalctl is the quickest way to spot restart loops
