Runtime exited with error: signal: killed ☁️ AWS

Lambda: Runtime exited with error: signal: killed (Runtime.ExitError)

The function process was killed — almost always because it ran out of its configured memory.

Seen on: AWS

Meaning

Lambda kills the runtime when it exceeds the memory setting. REPORT lines show “Max Memory Used” equal to “Memory Size”. Large files read into memory, image processing, and leaks across warm invocations are typical causes.

Common causes

  • Memory setting too low for the workload
  • Loading whole files/objects into memory
  • Memory leak across warm invocations (global caches)
  • Child processes using memory

⚡ Quick fix

  1. Increase memory (also increases CPU)
  2. Stream data instead of loading it all
  3. Check REPORT Max Memory Used in CloudWatch Logs

Detailed fix by platform

AWS CLI

  1. aws lambda update-function-configuration --function-name resize --memory-size 2048

How to diagnose

  1. Memory — REPORT line Max Memory Used vs Memory Size
  2. Payload — Size of data processed
  3. Trend — Grows across invocations?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.