Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4C9CD3B8 for ; Sun, 25 Nov 2012 21:56:24 +0000 (UTC) Received: (qmail 66749 invoked by uid 500); 25 Nov 2012 21:56:24 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 66728 invoked by uid 500); 25 Nov 2012 21:56:24 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 66719 invoked by uid 99); 25 Nov 2012 21:56:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Nov 2012 21:56:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rfbringer@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Nov 2012 21:56:16 +0000 Received: by mail-vb0-f45.google.com with SMTP id p1so12987419vbi.32 for ; Sun, 25 Nov 2012 13:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ucx+W/uqpdeOaDylnkDABv1Ba0kcSP4UlMx/d49yVlw=; b=kJmT1MwQEzBryLAIIu0+A19GGYZheyeMQsgfNTUsgo3O1QrHJc6scOTc+E3M3N9z2W r6xNKnEpbZAmm5L1JiN7fFHgHkj8ODvZDZnUQuqK0Id7vQIDq6YhzW9XlVKQ+5OnSsZ6 EsJNT/lAGMO7sEsw2ZYGwCInnLQWPH9d2p7hMx2fHleOREDHKLX40YNNmJBNkeJEZnUY JkRrYeEVTGIWW4eNO1lM0rVLrkIkJbyXMWyYCcv30rdPoNDLpA/HV+Hu1dACwmRE/57Z TrFNjDn9I2ZpdBUZ0O2ivdu4JxxTWae/5y2CoRCd3ivHl2F1XvdTaYhmmFrbvU9YPDlp /ijg== MIME-Version: 1.0 Received: by 10.52.27.241 with SMTP id w17mr14246445vdg.96.1353880555899; Sun, 25 Nov 2012 13:55:55 -0800 (PST) Received: by 10.220.149.70 with HTTP; Sun, 25 Nov 2012 13:55:55 -0800 (PST) Date: Mon, 26 Nov 2012 06:55:55 +0900 Message-ID: Subject: [camel-hbase]camel-hbase component performance improvement From: Sotaro Kimura To: dev@camel.apache.org Content-Type: multipart/mixed; boundary=20cf307c9c7c9a4a4004cf58e1c9 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307c9c7c9a4a4004cf58e1c9 Content-Type: text/plain; charset=ISO-8859-1 Hi, all. I'm testing hbase client using camel-hbase component. But in this test, data put performance is low. ( about 20 put operation / second, I use Core i7 2700K machine.) I confirmed performance bottleneck. And I find bottleneck below - Everytime camel-hbase component put data, camel-hbase component creates and closes HTableInterface. - But HTableInterface create cost is high. So camel-hbase component performance is low. I modified HBaseProducer using HTablePool, data put performance is improved 20 operetion/second to 200 operation/second. Modified source is below( and attach patchfile.txt) -HBaseProducer.java(orig) ---------------------------- 103 } finally { 104 table.close(); 105 } ---------------------------- -HBaseProducer.java(improved) ---------------------------- 103 } finally { 104 tablePool.putTable(table); 105 } ---------------------------- What should I do for contribution it. regards. -- ################################# Sotaro Kimura ################################# --20cf307c9c7c9a4a4004cf58e1c9 Content-Type: text/plain; charset=US-ASCII; name="patchfile.txt" Content-Disposition: attachment; filename="patchfile.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h9yowisx0 LS0tIEhCYXNlUHJvZHVjZXIuamF2YS5vcmlnCTIwMTItMTAtMTEgMTI6MjM6NDAuMDAwMDAwMDAw ICswOTAwCisrKyBIQmFzZVByb2R1Y2VyLmphdmEJMjAxMi0xMS0yNiAwNjoyOTowOS4wMDAwMDAw MDAgKzA5MDAKQEAgLTEwMSw3ICsxMDEsNyBAQAogICAgICAgICAgICAgICAgIG1hcHBpbmdTdHJh dGVneS5hcHBseVNjYW5SZXN1bHRzKGV4Y2hhbmdlLmdldE91dCgpLCBuZXcgSEJhc2VEYXRhKHNj YW5PcGVyYXRpb25SZXN1bHQpKTsKICAgICAgICAgICAgIH0KICAgICAgICAgfSBmaW5hbGx5IHsK LSAgICAgICAgICAgIHRhYmxlLmNsb3NlKCk7CisgICAgICAgICAgICB0YWJsZVBvb2wucHV0VGFi bGUodGFibGUpOwogICAgICAgICB9CiAgICAgfQogCg== --20cf307c9c7c9a4a4004cf58e1c9--