The current implementation of java.lang.Process/Runtime.exe on Linux still
includes the old hack of creating two extra threads for every subprocess, one
to read each of the subprocess' output streams. This is wasteful and dangerous,
since a subprocess that generates lots of output will quickly consume all of the
memory available to the parent process. This was fixed in Solaris in 1.3.0.
-- mr@eng 2001/3/14
includes the old hack of creating two extra threads for every subprocess, one
to read each of the subprocess' output streams. This is wasteful and dangerous,
since a subprocess that generates lots of output will quickly consume all of the
memory available to the parent process. This was fixed in Solaris in 1.3.0.
-- mr@eng 2001/3/14
- duplicates
-
JDK-4369826 JRE runs out of memory buffering child processs output (Linux)
-
- Closed
-