Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4425691

java.lang.Process/Runtime.exec is both inefficient and dangerous (Linux)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • None
    • generic
    • generic

      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

            mr Mark Reinhold
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: