capacity limit of reading process output to not throw exception