You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Bob Li <27...@qq.com> on 2017/08/01 08:23:45 UTC
Ignie 2.1: Heap memory used issue
I turned onheap off in my cache definition file like:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="personCache"></property>
<property name="statisticsEnabled" value="true" />
<property name="onheapCacheEnabled" value="false" />
<property name="indexedTypes"
value="java.lang.Long, com.calm.report.model.Trade" />
<property name="cacheMode" value="PARTITIONED" />
<property name="backups" value="0" />
<property name="memoryPolicyName" value="500M_Region_Trade" />
</bean>
but I checked Heap memory used by ignitevisorcmd.sh:
| Heap memory initialized | 1gb
|
| Heap memory used | 296mb
|
| Heap memory committed | 990mb
|
| Heap memory maximum | 990mb
|
| Non-heap memory initialized | 2mb
|
| Non-heap memory used | 57mb
|
| Non-heap memory committed | 59mb
|
| Non-heap memory maximum | 1gb
why didn't it take effect ?
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignie-2-1-Heap-memory-used-issue-tp15844.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Ignie 2.1: Heap memory used issue
Posted by "slava.koptilin" <sl...@gmail.com>.
Hi,
It looks like 'Non-heap memory' metrics are not properly calculated due to
https://issues.apache.org/jira/browse/IGNITE-5490
Thanks!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignie-2-1-Heap-memory-used-issue-tp15844p15896.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Ignie 2.1: Heap memory used issue
Posted by Bob Li <27...@qq.com>.
| Heap memory used | 296mb
|
| Heap memory committed | 990mb
|
| Heap memory maximum | 990mb
|
| Non-heap memory initialized | 2mb
|
| Non-heap memory used | 57mb
|
| Non-heap memory committed | 59mb
|
| Non-heap memory maximum | 1gb
I used off-heap to store data,
but Non-heap memory used was just 57mb while Heap memory used was 296mb
which was bigger than it .
I am confused at this point.
thanks.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignie-2-1-Heap-memory-used-issue-tp15844p15889.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Ignie 2.1: Heap memory used issue
Posted by "slava.koptilin" <sl...@gmail.com>.
Hi Bob,
I don't see any strange results.
Starting Ignite 2.0 data is always in off-heap, but Java heap is used for
operational needs of your application
and internals of Ignite itself (not as a data storage).
I think that 'Heap memory initialized', 'Heap memory committed' and 'Heap
memory maximum' correspond to your Xms, Xms options.
additional info about JVM tuning for off-heap cache can be found here
https://apacheignite.readme.io/docs/jvm-and-system-tuning#jvm-tuning-for-clusters-with-off_heap-caches
Thanks!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignie-2-1-Heap-memory-used-issue-tp15844p15849.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.