-
Bug
-
Resolution: Fixed
-
Minor
-
None
Currently, when dealing with timeout exceptions part of the process is to execute a "jstack" command. But there is a problem when the output of the process is long, since we are not reading it and the buffer is exceeded causing a deadlock: the process can't write more output and hence can't finish, and we are waiting for it forever.
This issue is documented in the Process class javadocs we can read: "failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, or even deadlock".
- links to