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

(process) Raise Windows pipe buffer size (win)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • core-libs
    • None
    • b15
    • generic
    • windows_2000

        It is well-known that a program that calls Process.waitFor
        without closing or draining the process output is subject
        to deadlock if the process writes more data to its stdout or stderr
        than fits into the OS pipe buffer which holds this data.
        On Solaris or Linux, there is no control over the size of the
        pipe buffer, and is, respectively 13k (!) and 4k.
        On Windows, the application (JDK) has control over the size of
        the buffer when the subprocess is created, and currently a size of 512
        is hard-coded. We should probably raise that to either the Solaris or Linux
        limit, both for process I/O throughput and for deadlock avoidance.

              martin Martin Buchholz
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: