Skip to content
Claude Code, Codex and MCP2 min read

Claude Code stops suddenly on a server (Killed or out of memory)

Killed

Short answer

Claude Code needs 4 GB of RAM or more according to its official requirements. On hosting that gives your account 1 or 2 GB, it hits the limit along with build and test commands, the system ends the process and you see Killed. Restart with claude --continue to resume the session, run heavy commands one at a time, and if it keeps happening you need an account with 4 GB or more, or run it on your computer and connect it to the server through MCP.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What the error means
  2. Common causes
  3. The fix, step by step
  4. When you need something bigger
  5. Prevention
  6. On ArabyHost

What the error means

Killed with no other message means the system ended the process, and the most common reason is that it went over your account’s memory limit. On hosts running CloudLinux each account has a memory limit, and everything you run counts against it together: Claude Code itself, the commands it runs, and your site.

Common causes

  • Account memory under 4 GB: the minimum Anthropic lists for Claude Code.
  • Heavy commands at the same time: npm install, a front-end build and many tests at once.
  • A very long session: a session’s memory grows with long work.
  • Your site runs on the same account: its visitors use the same memory.

The fix, step by step

  1. Pick up where you left off:
claude --continue
  1. Find the limit: check resource usage in your hosting panel, and look for memory-limit hits at the time it stopped.
  2. Split the work: ask Claude Code to run builds and tests step by step, not all together.
  3. Start a new session for new tasks instead of one very long session.
  4. If the build itself gets killed: see Node heap out of memory and npm install killed.

When you need something bigger

If it keeps stopping during normal work, the account doesn’t suit Claude Code. You have two ways:

Way When it fits
An account with 4 GB or more and SSH You want Claude Code running on the server itself
Claude Code on your computer, MCP to the server You want the work done on your computer and the hosting controlled remotely

The full comparison is in Claude Code over SSH or MCP.

Prevention

  • Don’t run Claude Code on a small account that serves a busy site.
  • Run heavy commands away from peak hours.

On ArabyHost

Our AI and Developer plans are made for this: 4 GB of RAM or more depending on the plan, secure SSH, and Node.js 24 and Python 3.12 ready, so Claude Code runs on the server without being killed during normal work. On every plan you can also run Claude on your computer and connect it to your account through Araby MCP.

FAQ

How much RAM does Claude Code need?

Anthropic lists 4 GB of RAM or more in its system requirements. The commands Claude Code runs, such as npm install, builds or tests, need memory on top of that.

What does the memory warning inside Claude Code mean?

It appears when a session's memory passes a high mark after long work. Restart Claude Code, then run claude --continue to carry on the same conversation with less memory.

Should I run Claude Code on shared hosting?

Most shared hosting gives no SSH or little memory. It's better to run Claude Code on your computer and connect it to your account through MCP, or pick a plan made for this use.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.