Skip to content

Increase V8 heap ceiling (max-old-space-size) to resolve Node.js heap OOM issue #131

Description

@NishaSharma14

Describe the bug
The application is encountering a Node.js / V8 heap out-of-memory (OOM) error during execution. This occurs when the V8 JavaScript engine runs out of heap memory, causing the process to crash.

To Reproduce
Steps to reproduce the behavior:

  1. Run the application with default Node.js memory settings
  2. Process large datasets or perform memory-intensive operations
  3. Observe Node.js heap OOM error
  4. Application crashes with heap out of memory error

Expected behavior
The application should handle memory-intensive operations without crashing. Increasing the max-old-space-size parameter will raise the V8 heap ceiling and allow the application to allocate more memory before hitting the OOM limit.

Additional context
This issue can be resolved by increasing the V8 heap size limit using the --max-old-space-size flag when starting the Node.js process.

The appropriate value should be determined based on the application's memory requirements and available system resources.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions