ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yucigou <yuci....@gmail.com>
Subject Combined off heap size?
Date Wed, 17 Aug 2016 15:44:27 GMT
According to page http://apacheignite.gridgain.org/docs/off-heap-memory, I
can set the off heap size using the offHeapMaxMemory.

If I understand correctly, this is for a single cache. Considering the
following configuration, I've got three caches, namely session-cache,
data-cache and penalty-cache. And the off heap size for each cache is set to
10GB. That is, I need 30GB RAM to accommodate the off heap memory for all
the three caches.

	<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">	
		<property name="cacheConfiguration">
			<list>
				<bean class="org.apache.ignite.configuration.CacheConfiguration">
					<property name="name" value="session-cache" />
					<property name="cacheMode" value="PARTITIONED"/>
					<property name="backups" value="1"/>										
					<property name="memoryMode" value="OFFHEAP_VALUES"/>					
  					<property name="offHeapMaxMemory" value="#{10 * 1024L * 1024L *
1024L}"/>  					
				</bean>
				<bean class="org.apache.ignite.configuration.CacheConfiguration">
					<property name="name" value="data-cache" />
					<property name="cacheMode" value="PARTITIONED"/>
					<property name="backups" value="1"/>										
					<property name="memoryMode" value="OFFHEAP_VALUES"/>					
  					<property name="offHeapMaxMemory" value="#{10 * 1024L * 1024L *
1024L}"/>  					
				</bean>
				<bean class="org.apache.ignite.configuration.CacheConfiguration">
					<property name="name" value="penalty-cache" />
					<property name="cacheMode" value="PARTITIONED"/>
					<property name="backups" value="1"/>										
					<property name="memoryMode" value="OFFHEAP_VALUES"/>					
  					<property name="offHeapMaxMemory" value="#{10 * 1024L * 1024L *
1024L}"/>  					
				</bean>
			</list>
		</property>
	</bean>

It is likely that as time goes by, 10G is not enough for one cache (e.g.,
data-cache), but still more than enough for another (e.g., penalty-cache).
That is, the off heap memory is not used efficiently.

My question is, is there a way to set the combined off heap size? For
example, I want to set the combined off heap size to 30G for all three
caches, regardless of which cache uses what amount of it.

Is it possible? Thanks.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Combined-off-heap-size-tp7137.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message