Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CB79A200B46 for ; Fri, 1 Jul 2016 19:23:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CA405160A4D; Fri, 1 Jul 2016 17:23:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 42C31160A61 for ; Fri, 1 Jul 2016 19:23:12 +0200 (CEST) Received: (qmail 18518 invoked by uid 500); 1 Jul 2016 17:23:11 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 18496 invoked by uid 99); 1 Jul 2016 17:23:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 17:23:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 29EE72C02A7 for ; Fri, 1 Jul 2016 17:23:11 +0000 (UTC) Date: Fri, 1 Jul 2016 17:23:11 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16165) Decrease RpcServer.callQueueSize before writeResponse causes OOM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 17:23:13 -0000 [ https://issues.apache.org/jira/browse/HBASE-16165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359323#comment-15359323 ] Enis Soztutar commented on HBASE-16165: --------------------------------------- Did you see this happening, or theoretical by reading code? Just asking. > Decrease RpcServer.callQueueSize before writeResponse causes OOM > ---------------------------------------------------------------- > > Key: HBASE-16165 > URL: https://issues.apache.org/jira/browse/HBASE-16165 > Project: HBase > Issue Type: Bug > Reporter: Duo Zhang > > In RpcServer, we use {{callQueueSizeInBytes}} to avoid queuing too many calls which causes OOM. But in {{CallRunner.run}}, we decrease it before send the response back. And even after calling {{sendResponseIfReady}}, the call object could stay in our heap for a long time if we can not write out the response(That's why we need a Responder thread...). This makes it possible that the actual size of all call object in heap is larger than {{maxQueueSizeInBytes}} and causes OOM. -- This message was sent by Atlassian JIRA (v6.3.4#6332)