Skip to content

[Bug] NODE_MAX_OLD_SPACE_SIZE Needs to auto adjust with available memory #441

Description

@FlattusBlastus

What went wrong?

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I have a large library. It wasnt completing scans and wasnt auto-finalizing.

Steps to reproduce

  1. In compose, NODE_MAX_OLD_SPACE_SIZE did not exist.
  2. Have large pile o books in book-drop folder.
  3. See about 1/3rd of them get identified and thats it.
  4. Observe FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory error in logs.

Expected vs actual behavior

Expected my Book library to be filled vs no books in there at all.

Your setup

1.12
Docker / TrueNAS App
TrueNAS 26.04 Beta 2

Relevant logs (optional)

To fix I added: NODE_MAX_OLD_SPACE_SIZE: 8192 on a container with 32768M assigned total.
Largest usage I've seen so far has been ~22G

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions