[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194388#comment-15194388
 ] 

ASF GitHub Bot commented on BOOKKEEPER-578:
-------------------------------------------

GitHub user merlimat opened a pull request:

    https://github.com/apache/bookkeeper/pull/28

    BOOKKEEPER-578: LedgerCacheImpl is reserving 1/3 of Heap size but allocates 
NonHeap memory

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/merlimat/bookkeeper bk-578

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bookkeeper/pull/28.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #28
    
----
commit 4521e7a677b7a33354d787cf4bd2928b5210c2ea
Author: Matteo Merli <[email protected]>
Date:   2016-03-14T23:33:31Z

    BOOKKEEPER-578: LedgerCacheImpl is reserving 1/3 of Heap size but allocates 
NonHeap memory

----


> LedgerCacheImpl is reserving 1/3 of Heap size but allocates NonHeap memory
> --------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-578
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-578
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>            Reporter: Matteo Merli
>            Assignee: Matteo Merli
>            Priority: Minor
>             Fix For: 4.4.0
>
>
> By default the page limit parameter is set to -1, which means to assign 1/3 
> of Heap space to the LedgerCache. Each LedgerEntryPage is then allocating the 
> memory outside the heap (ByteBuffer.allocateDirect()).
> This makes BK to use more memory than the -XmxNN configured setting. Is there 
> any particular reason for the LedgerEntryPage buffer to be allocated outside 
> the java heap? Could that be changed?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to