I’m running OpenClaw on a dedicated server for a real production editorial workflow, and performance has become a serious issue. The installation is now slow enough that many actions feel borderline unusable, so I’m trying to understand whether this is expected for our setup or if we are misconfigured.
What this server does:
Discord is our main control surface
OpenClaw runs an editorial orchestrator agent
It manages multiple site/content workflows, dashboard-triggered jobs, Discord thread work, and ACP runtime sessions
We use persistent session history because continuity matters across editorial tasks
We also use memory/qmd, dashboard automation, cron/task flows, and some web/browser tooling
Current stack:
OpenClaw 2026.4.14
Main active agent: editorial-acp
Model: openai-codex/gpt-5.4
Gateway running locally on 127.0.0.1:3031
Dashboard running separately on port 8090
Enabled plugins include: discord, openai, acpx, brave, camofox-browser, memory-core
contextPruning.mode = cache-ttl
current TTL is set to 1 hour
What we observed:
Host machine itself does not seem overloaded: low load average, dashboard responds fast, CPU is not saturated
However, the openclaw-gateway process was using about 1.85 GB RSS
Session storage under ~/.openclaw/agents has grown a lot:
editorial-acp about 1.7 GB
main about 472 MB
In ~/.openclaw/agents/editorial-acp/sessions alone:
526 files
about 546 MB
about 299 MB in .checkpoint..jsonl
about 84 MB in .reset.
about 150 MB in base *.jsonl transcripts
We also saw warnings like:
“skipping parent fork (parent too large)”
one case with parentTokens=131692
Current live session context was already around 44k / 200k tokens even in a normal support/debug conversation
My suspicion:
This may not be a raw server issue, but a combination of:
Very large persistent session histories
Too many retained checkpoints/reset artifacts
Gateway memory growth from loading/managing large session state
Pruning settings that are too conservative for a tool-heavy Discord workflow
Possibly missing retention/cleanup settings for sessions and artifacts
Questions:
Is ~1.8 GB RSS for the gateway plausible in this kind of setup, or does it suggest a memory leak / bad retention pattern?
Are checkpoint and reset session artifacts expected to accumulate this much over time?
What is the recommended cleanup/retention policy for long-running production Discord installs?
Should we lower contextPruning TTL from 1h to something like 5m or 10m for tool-heavy sessions?
Are there recommended settings for:
session retention
checkpoint retention
reset artifact cleanup
thread/session isolation
compaction tuning
memory/qmd usage in persistent Discord channels
Is there a best practice to avoid oversized channel-level sessions while still keeping useful continuity?
We would really appreciate concrete guidance on how to tune this installation for a production Discord + editorial automation environment, especially around session lifecycle, pruning, compaction, retention, and gateway memory behavior.