Dr.Khu
Dr.Khu

Reputation: 665

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.

Upvotes: 2

Views: 226

Answers (2)

kuaw26
kuaw26

Reputation: 456

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.

Upvotes: 4

Dmitriy
Dmitriy

Reputation: 2292

Offheap functionality is enabled in the community edition.

Please refer to the GridGain OffHeap documentation for information on how to enable it.

Upvotes: 3

Related Questions