[
https://issues.apache.org/jira/browse/CAMEL-5824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sotaro Kimura updated CAMEL-5824:
---------------------------------
Attachment: patchfile.txt
Patchfile
> camel-hbase - HBase data access performance improvement
> -------------------------------------------------------
>
> Key: CAMEL-5824
> URL: https://issues.apache.org/jira/browse/CAMEL-5824
> Project: Camel
> Issue Type: Improvement
> Components: camel-hbase
> Affects Versions: 2.10.2
> Environment: OS:CentOS6.2 64bit
> CPU:Core i7 2700
> Memory:16GB
> HDD:WD20EARX(2TB SATA600)
> Reporter: Sotaro Kimura
> Priority: Minor
> Labels: performance
> Attachments: patchfile.txt
>
>
> In testing hbase client using camel-hbase component,
> 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.
> Performance problem is fixed by using HTablePool at HBaseProducer,
> 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 }
> ----------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira