From 91d03697d93bce227f27af863a6427e661ac511c Mon Sep 17 00:00:00 2001 From: zhangduo Date: Sun, 18 Sep 2016 10:05:27 +0800 Subject: [PATCH] HBASE-16165 Decrease RpcServer.callQueueSize before writeResponse causes OOM (Guanghao Zhang) --- .../src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java index 854573ad54f..db615a8b1ce 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java @@ -574,6 +574,8 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver { } public synchronized void sendResponseIfReady() throws IOException { + // set param null to reduce memory pressure + this.param = null; this.responder.doRespond(this); }