Skip to content

OutOfMemoryError caused by UnixProcess holding all output written to stdout #427

Closed
@cerebrotecnologico

Description

@cerebrotecnologico

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions