浏览代码

HADOOP-16452. Increase ipc.maximum.data.length default from 64MB to 128MB. Contributed by Siyao Meng.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
Siyao Meng 5 年之前
父节点
当前提交
c75f16db79

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java

@@ -82,7 +82,7 @@ public class CommonConfigurationKeys extends CommonConfigurationKeysPublic {
   public static final String IPC_MAXIMUM_DATA_LENGTH =
   public static final String IPC_MAXIMUM_DATA_LENGTH =
       "ipc.maximum.data.length";
       "ipc.maximum.data.length";
   /** Default value for IPC_MAXIMUM_DATA_LENGTH. */
   /** Default value for IPC_MAXIMUM_DATA_LENGTH. */
-  public static final int IPC_MAXIMUM_DATA_LENGTH_DEFAULT = 64 * 1024 * 1024;
+  public static final int IPC_MAXIMUM_DATA_LENGTH_DEFAULT = 128 * 1024 * 1024;
 
 
   /** Max response size a client will accept. */
   /** Max response size a client will accept. */
   public static final String IPC_MAXIMUM_RESPONSE_LENGTH =
   public static final String IPC_MAXIMUM_RESPONSE_LENGTH =

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

@@ -2213,7 +2213,7 @@
 
 
 <property>
 <property>
   <name>ipc.maximum.data.length</name>
   <name>ipc.maximum.data.length</name>
-  <value>67108864</value>
+  <value>134217728</value>
   <description>This indicates the maximum IPC message length (bytes) that can be
   <description>This indicates the maximum IPC message length (bytes) that can be
     accepted by the server. Messages larger than this value are rejected by the
     accepted by the server. Messages larger than this value are rejected by the
     immediately to avoid possible OOMs. This setting should rarely need to be
     immediately to avoid possible OOMs. This setting should rarely need to be