Fix “Runtime Exited” in AWS Lambda for IronOCR

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.

Increasing the memory allocation allows the Lambda function to handle larger tasks, potentially eliminating the "Runtime exited with error" issue. Make sure to test the function after making changes to ensure it performs as expected.

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 5,044,537 | Versión: 2025.11 recién lanzado