Programming

Node.js process exits without logging an error

Environment

Environment

Node.js 22 worker processing image jobs in a Docker container.

What happens

What happens

The container restarts during large jobs and application logs end abruptly.

What I have tried

What I have tried

Added uncaughtException and unhandledRejection handlers with no new output.

I would appreciate advice on how to identify the root cause without risking existing data or configuration.

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 3w ago• Trouble ID

Most likely causes

The container is being terminated by the kernel OOM killer rather than throwing a JavaScript exception. 75%
A recent software, firmware or configuration change is exposing an existing compatibility issue. 45%

Summary

The reported behaviour is consistent with the container is being terminated by the kernel OOM killer rather than throwing a JavaScript exception. The safest next step is to verify that hypothesis with a reversible test before making permanent configuration changes.

Suggested Fixes

Verify the likely cause
Inspect container exit code and cgroup memory events, stream image processing, cap concurrency and set realistic memory limits.
Validate and monitor
Reproduce the issue once after the change, review relevant logs or metrics, and keep a rollback path until the system has remained stable.

Continue troubleshooting

Matched from the title, description and tags