Closed
Description
The class org.openqa.selenium.os.UnixProcess contains the following method:
private final ByteArrayOutputStream inputOut = new ByteArrayOutputStream();
private OutputStream getOutputStream() {
return drainTo == null ? inputOut
: new MultioutputStream(inputOut, drainTo);
}
The variable inputOut is a ByteArrayOutputStream, holding anything that is written in stdout into an array of bytes. The contents are never eliminated, therefore, all output is accumulated, eventually producing the OutOfMemoryError.