I work in an embedded environment where resources are quite limited. We are trying to use node.js, which works well, but usually consumes about 60 megabytes of virtual memory (used real memory is about 5 megabytes). Given our limitations, this is too much virtual memory; we can allow node.js to use a maximum of 30 megabytes of virtual machine.
There are several command line options for node.js, such as --max_old_space_size, --max_executable_size, and --max_new_space_size, but after experimenting, I found that they all control the use of real memory and not the maximum size of virtual memory .
If that matters, I work on the Linux version of Ubuntu in the ARM architecture.
Is there any parameter or parameter that allows you to set the maximum amount of virtual memory that node.js is allowed to use?
source share