Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C905C984E for ; Sun, 18 Dec 2011 23:58:54 +0000 (UTC) Received: (qmail 76419 invoked by uid 500); 18 Dec 2011 23:58:54 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 76378 invoked by uid 500); 18 Dec 2011 23:58:54 -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 76370 invoked by uid 99); 18 Dec 2011 23:58:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2011 23:58:54 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2011 23:58:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 95B5A11A25C for ; Sun, 18 Dec 2011 23:58:30 +0000 (UTC) Date: Sun, 18 Dec 2011 23:58:30 +0000 (UTC) From: "Lars Hofhansl (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <277299655.24737.1324252710614.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1471978059.48122.1323226060197.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4970) Allow better control of resource consumption in HTable (backport HBASE-4805 to 0.90 branch) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171968#comment-13171968 ] Lars Hofhansl commented on HBASE-4970: -------------------------------------- Ok... In that case, let's just add the new parameter everywhere. Sorry for leading you astray. I'll commit the initial patch and the 0.92 and trunk patches later today, unless somebody objects. > Allow better control of resource consumption in HTable (backport HBASE-4805 to 0.90 branch) > ------------------------------------------------------------------------------------------- > > Key: HBASE-4970 > URL: https://issues.apache.org/jira/browse/HBASE-4970 > Project: HBase > Issue Type: Improvement > Components: client > Affects Versions: 0.90.4 > Reporter: gaojinchao > Assignee: gaojinchao > Priority: Trivial > Fix For: 0.90.6 > > Attachments: HBASE-4970_Branch90.patch, HBASE-4970_Branch90_V1_trial.patch, HBASE-4970_Branch90_V2.patch, HBASE-4970_Branch92_V2.patch, HBASE-4970_Trunk_V2.patch > > > In my cluster, I changed keepAliveTime from 60 s to 3600 s. Increasing RES is slowed down. > Why increasing keepAliveTime of HBase thread pool is slowing down our problem occurance [RES value increase]? > You can go through the source of sun.nio.ch.Util. Every thread hold 3 softreference of direct buffer(mustangsrc) for reusage. The code names the 3 softreferences buffercache. If the buffer was all occupied or none was suitable in size, and new request comes, new direct buffer is allocated. After the service, the bigger one replaces the smaller one in buffercache. The replaced buffer is released. > So I think we can add a parameter to change keepAliveTime of Htable thread pool. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira