Skip to content

Commit a793696

Browse files
change the NIO buffer size limit from 512K to 256K
1 parent 63ca85a commit a793696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/network-common/src/main/java/org/apache/spark/network/protocol/MessageWithHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MessageWithHeader extends AbstractReferenceCounted implements FileRegion {
5050
* avaliable buffer is smaller than this limit, the data cannot be sent within one single write
5151
* operation while it still will make memory copy with this size.
5252
*/
53-
private static final int NIO_BUFFER_LIMIT = 512 * 1024;
53+
private static final int NIO_BUFFER_LIMIT = 256 * 1024;
5454

5555
/**
5656
* Construct a new MessageWithHeader.

0 commit comments

Comments
 (0)