Meteor crashes with error code

My meteor application crashes with the below error code. Don’t know what the reason is. Can anyone help me?

W20230417-16:03:36.416(6)? (STDERR) 11: 0xd4aa90 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [/root/.meteor/packages/meteor-tool/.]
W20230417-16:03:36.416(6)? (STDERR) 12: 0xd50d9d v8::internal::Factory::NewStringFromUtf8(v8::internal::Vector<char const> const&, v8::internal::AllocationType) [/root/.meteor/packages/meteor-tool/.]
W20230417-16:03:36.417(6)? (STDERR) 13: 0xbd1ac2 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/root/.meteor/packages/meteor-tool/.]
W20230417-16:03:36.417(6)? (STDERR) 14: 0xb1e7e9  [/root/.meteor/packages/meteor-tool/.]
W20230417-16:03:36.417(6)? (STDERR) 15: 0xa169b1  [/root/.meteor/packages/meteor-tool/.]
W20230417-16:03:36.418(6)? (STDERR) 16: 0x13e0ced  [/root/.meteor/packages/meteor-tool/.]

It looks like it has some memory issues.

  • What is your meteor version?
  • What is your server operating system?
  • What is node version you’re running?
  • How did you deploy your meteor app?
  • How much ram does your server have?

Btw, running application with root account is not recommended.

Yes, I also found it is related to javascript heap memory Allocation. However, RAM size of my server is 8 GB. Node version - v.19.9.0, meteor version - 2.11.0 . OS of the server is Debian.

I have tried to increase heap memory allocation using the below command

export NODE_OPTIONS=–max-old-space-size=4096

But it doesn’t work, as I think RAM size is 8 GB is not enough for allocating 4 GB only for node heap memory.

What do you think?

Node needs to be 14.x