Search code examples
gridgain

Is GridGain Off Heap feature available in community edition?


Subj, why I'm asking, because it ./ggvisor.cmd tells me, that Off Heap memory is not changed even when I change it in config, as described here http://atlassian.gridgain.com/wiki/display/GG60/Off-Heap+Memory Could you, please, provide a proof link, as I haven't found that information. Thanks in advance.


Solution

  • It seems that you used command "node" and seen NODE metric "Non-heap memory maximum". You should use command "config".

    For example, I configured off heap cache:

    <bean class="org.gridgain.grid.cache.GridCacheConfiguration">
     <property name="name" value="oh_partitioned"/>
     <property name="cacheMode" value="PARTITIONED"/>
     <property name="memoryMode" value="OFFHEAP_TIERED"/>
     <property name="offHeapMaxMemory" value="#{1024L * 1024L * 1024L}"/>
    </bean>
    

    Then I started node and visorcmd and enter "config" command and got output about node configuration, one of the part of that output is about my cache:

    Cache 'oh_partitioned':
    +--------------------------------------------------------------------------------+
    | Mode                                      | PARTITIONED                        |
    ....
    | **Off-Heap Size**                         | 1gb                                |
    ....
    +--------------------------------------------------------------------------------+
    

    Hope this help. In next release we will add this information in "cache" command.