AWS Lambda - Runtime Exited Signal: Killed

This article was translated from English: Does it need improvement?
Translated
View the article in English

If you encounter the following error, it is highly likely that the issue is related to insufficient memory allocation:

RequestId: 48ace8f3-1391-40ea-bc0e-aa864de3a8e2 Error: Runtime exited with error: signal: killed

Reason

This error typically occurs when the application tries to execute a task that exceeds the available memory on the host machine or container environment. When the memory consumption reaches the system's limit, the process is forcefully terminated, resulting in the "signal: killed" message.

Solution

To increase memory for an AWS Lambda function:

  1. Go to the AWS Management Console.
  2. Navigate to Lambda > Functions.
  3. Select the function experiencing the issue.
  4. Under the 'Configuration' tab, choose 'General configuration' and click 'Edit'.
  5. Adjust the memory allocation and save.
Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

準備好開始了嗎?
Nuget 下載 47,669 | 版本: 2025.11 剛剛發布