[
https://issues.apache.org/jira/browse/HBASE-12569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296488#comment-14296488
]
ramkrishna.s.vasudevan commented on HBASE-12569:
------------------------------------------------
I just hit this issue in an older version. In the older versions the
HBASE_OFFHEAPSIZE was never getting used at all.
So just in case some one is trying to set MaxDirectMemory for offheap
bucketCache that does not have this JIRA's fix
{code}
# export HBASE_OPTS="$HBASE_OPTS
-XX:MaxDirectMemorySize=SET_THIS_TO_HOW_MANY_GIGS_OF_OFFHEAP"
{code}
thinking that setting HBASE_OFFHEAPSIZE would help to control the
maxDirectMemory size based on the reference here
http://hbase.apache.org/book.html#perf.reading. Ensure that you set
SET_THIS_TO_HOW_MANY_GIGS_OF_OFFHEAP or directly use export
HBASE_OPTS="$HBASE_OPTS -XX:MaxDirectMemorySize=8G option.
Just adding for reference.
> Control MaxDirectMemorySize in the same manner as heap size
> -----------------------------------------------------------
>
> Key: HBASE-12569
> URL: https://issues.apache.org/jira/browse/HBASE-12569
> Project: HBase
> Issue Type: Improvement
> Components: scripts
> Affects Versions: 0.98.7
> Environment: CentOS 6
> Reporter: Patrick White
> Assignee: Patrick White
> Priority: Minor
> Fix For: 2.0.0, 0.99.2
>
> Attachments:
> 0001-HBASE-12569-Update-scripts-to-control-MaxDirectMemor.patch,
> 0001-HBASE-12569-Update-scripts-to-control-MaxDirectMemor.patch
>
>
> It would make it much easier on us if we could manage MaxDirectMemorySize in
> the same way as heap. This patch allows that to happen.
> Note: I have not tested the *.cmd modifications as I don't have a Windows box
> (at the moment, can test at home) but look like they should work (famous last
> words).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)