Cells is experiencing "out of memory" errors, even though there's plenty available on the machine.

Modified on Wed, Sep 4, 2024 at 3:39 PM


It's possible that not enough memory has been set aside for Node to use on the machine. This can be forced by setting an environment variable, like so:


Linux:

$ export NODE_OPTIONS="--max_old_space_size=4096"

Note that this only sets the environment variable for the current session. If you open a new shell, or log out, the variable will be lost. To make the variable persistent, it will need to be set in configuration files, e.g. '/etc/environment' (this creates a system-wide env variable).


Windows:

In Powershell:

> $env:NODE_OPTIONS = '--max_old_space_size=4096'

As with the Linux example, this only sets the variable for the current session. In order to set the variable persistently, it must be done using the System.Environment class:

> [System.Environment]::SetEnvironmentVariable('NODE_OPTIONS', '--max_old_space_size=4096')

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article