Rate This Document
Findability
Accuracy
Completeness
Readability

COSBench Fails to Read Large Files

Symptom

During the 256 KB get test, COSBench fails to read files.

Key Process and Cause Analysis

The default maximum size of files read by COSBench is 128 KB. The size of the tested files exceeds the limit.

Conclusion and Solution

  1. View COSBench logs.
    vim /path/to/cosbench/archive/workload/workload.log
    It consists the following error message:
    Uploading large file fails with ResetException: Failed to reset the request input stream
  2. Add the following to the Java command line in the /path/to/cosbench/cosbench-start.sh script and modify the parameter value:
    -Dcom.amazonaws.sdk.s3.defaultStreamBufferSize=<YOUR_MAX_PUT_SIZE>