ProcessBuilder.start and Runtime.exec seem to use fork () on the * NIX system, which seems to allocate the child process to the same amount of memory as the parent process (see
this question ). This can be painful if you want to start a process that requires almost no memory from a process that uses a lot of memory.
Is there a way to start processes using POSIX_SPAWN - which does not allocate this memory? The only way I know is to use Tanuki , but for me it is not ideal.
source
share