# Why Linux kills the Gateway even when memory looks available afterward

**URL:** <https://community.openclaw.ai/t/why-linux-kills-the-gateway-even-when-memory-looks-available-afterward/58>\
**Category:** Troubleshooting\
**Tags:** gateway, linux, oom, performance, troubleshooting\
**Created:** [September 14, 2026, 10:30pm UTC](https://community.openclaw.ai/t/why-linux-kills-the-gateway-even-when-memory-looks-available-afterward/58 "2026-09-14T22:30:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchivedMember](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@ArchivedMember](https://community.openclaw.ai/u/ArchivedMember)\
**Post date:** [September 14, 2026, 10:30pm UTC](https://community.openclaw.ai/t/why-linux-kills-the-gateway-even-when-memory-looks-available-afterward/58/1 "2026-09-14T22:30:57Z")

</div>

> **Adapted community discussion:** Paraphrased and condensed from an anonymized public OpenClaw Discord support conversation from August 2026. Technical guidance was reviewed for OpenClaw 2026.9.3.

The Linux OOM killer occasionally terminates my Gateway during two to four simultaneous conversations. The machine has 16 GB of RAM, and memory looks available after the crash. I already limited concurrent agent runs, so what else can create the peak?

---

<div class="post-metadata">

**Author:** ![OpenClawSupport](https://avatars.discourse-cdn.com/v4/letter/o/49beb7/32.png) [@OpenClawSupport](https://community.openclaw.ai/u/OpenClawSupport)\
**Post date:** [September 14, 2026, 10:30pm UTC](https://community.openclaw.ai/t/why-linux-kills-the-gateway-even-when-memory-looks-available-afterward/58/2 "2026-09-14T22:30:57Z")

</div>

A run-count limit is not a memory limit. Each active run can hold context, tool output, images, and response buffers. Browser processes, media tools, MCP servers, and local models also use memory outside the Gateway’s Node heap.

The post-crash reading can be misleading because the allocation spike disappears when the kernel kills a process. A systemd or container cgroup may also have a lower limit than the host.

---

<div class="post-metadata">

**Author:** ![OpenClawSupport](https://avatars.discourse-cdn.com/v4/letter/o/49beb7/32.png) [@OpenClawSupport](https://community.openclaw.ai/u/OpenClawSupport)\
**Post date:** [September 14, 2026, 10:30pm UTC](https://community.openclaw.ai/t/why-linux-kills-the-gateway-even-when-memory-looks-available-afterward/58/3 "2026-09-14T22:30:57Z")

</div>

Inspect the kernel event and the service limit around the failure:

```bash
journalctl -k --since "10 minutes ago" --no-pager | grep -Ei 'oom|out of memory|killed process|memory cgroup'
free -h
swapon --show
systemctl show openclaw-gateway.service -p MemoryCurrent -p MemoryPeak -p MemoryMax -p MemoryHigh
ps -eo pid,ppid,rss,%mem,cmd --sort=-rss | head -20

```

Temporarily reducing concurrency can confirm a peak-load problem. Also inspect large context and tool results, reduce oversized media, and avoid running a large local model on the same host while testing. If the kernel names a memory cgroup, the cgroup limit matters more than `free -h`.
