Tuesday, 14 March 2017

Does node's max_old_space_size affect the child processs's memory limits?

I'm using node to manage the communication layer between services and a long running java process. This java process is a jar that is run using ChildProcess.spawn()

I'm setting up stdio, close, stderr listeners to monitor the progress of the child process and save output throughout. I expected the child process to run in its own memory space, with its own memory limits (at it is a standalone process).

However, through testing I have determined that the process runs significantly longer before seeing memory issues when I increase the max_old_space_size of the node process. It seems like the memory allocated through the execution of the java process is counted against the max allocation of the parent process. Is this the case?



via Nathan Tornquist

No comments:

Post a Comment