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


#1

Hi
Today When I try to au build --watch I get this error

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

Any idea please?

regards


#2

Hi, I have experienced this for rather large projects. Node’s heap memory allocation is 1.76Gb by default at least on my mac.
On my mac I override this by setting the environment variable
NODE_OPTIONS="–max-old-space-size=2048".

Hope this helps.


#3

Wow, what kind of huge app you guys got? :open_mouth:


#4

Hi. The project is small this problem started when I added kendoui-core and kendoui-bridge
Thanks


#5

Hi do you set in .bash_profile?node
Thanks


#6

if you are going to set it up on .bash_profile, you could export it so subprocessess “see it”:
export NODE_OPTIONS="…"

Regards,


#7

Hi
I don’t know what is the best way to do it what you say to me will be good. Where do you set it?
Regards


#8

Hi
I have the same error anyway. I’m locked with this… thanks


#9

Try setting the limit a lot higher to be sure this is the cause. For instance, set it up to 4096.

Regards,