Use 1MB as the max payload size in benchmarks to avoid exceeding Netty's buffer pool

default max buffer size.
This commit is contained in:
Louis Ryan 2015-06-24 14:34:06 -07:00
parent ae2b5bfda7
commit a69fbb0a2b
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ public abstract class AbstractBenchmark {
* Standard payload sizes.
*/
public enum PayloadSize {
SMALL(10), MEDIUM(1024), LARGE(65536), JUMBO(16777216);
// Max out at 1MB to avoid creating payloads larger than Netty's buffer pool can handle
// by default
SMALL(10), MEDIUM(1024), LARGE(65536), JUMBO(1048576);
private final int bytes;
PayloadSize(int bytes) {