You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by waterg <je...@gmail.com> on 2017/06/08 22:48:06 UTC

Ignite 2.0 off-heap memory

Hello,

has anyone used visor to check the memory usage in 2.0?
I set up a custom region and used the custom region in the cache
configuration.
But when I used visor, it shows that all the entries are on heap. Should I
do something different?

memory config:
 <property name="memoryConfiguration">
            <bean
class="org.apache.ignite.configuration.MemoryConfiguration">
                
                <property name="memoryPolicies">
                    <list>
                        <bean
class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
                            <property name="name" value="customRegion"/>
                            
                            <property name="initialSize" value="#{1 * 1024 *
1024 * 1024}"/>
                            
                            <property name="maxSize" value="#{40 * 1024 *
1024 * 1024}"/>
                            
                            <property name="swapFilePath" value="~/swap" />
                        </bean>
                    </list>
                </property>
            </bean>
        </property>

part of cache config
                <bean
class="org.apache.ignite.configuration.CacheConfiguration">

                    <property name="name" value="sampleCache"/>
                    <property name="memoryPolicyName" value="customRegion"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="TRANSACTIONAL"/>

display of cache -a in visor

Nodes for: sampeCache(@c1)
+==============================================================================================================                                     
+
|      Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |        
Size         | Hi/Mi/Rd/Wr                                       |
+==============================================================================================================                                     
+
| 8B41D11E(@n0), xxx.xxx.xxx.118 | 8    | 5.27 %    | 0.33 %   |
00:01:26:659 | Total: 2000          | Hi: 0                                            
|
|                            |      |           |          |              |  
Heap: 2000         | Mi: 0                                             |
|                            |      |           |          |              |  
Off-Heap: 0        | Rd: 0                                             |
|                            |      |           |          |              |  
Off-Heap Memory: 0 | Wr: 0                                             |
+--------------------------------------------------------------------------------------------------------------    



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

Re: Ignite 2.0 off-heap memory

Posted by Jessie Lin <je...@gmail.com>.
Thank you for confirming and opening the ticket Mikhail.

Jessie

On Fri, Jun 9, 2017 at 6:58 AM, Michael Cherkasov <
michael.cherkasov@gmail.com> wrote:

> Hi Jessie,
>
> With your configuration Ignites 2.0 stores data in Off Heap memory, but
> visor shows
> wrong statistics, I created a ticket for this issue:
>
> https://issues.apache.org/jira/browse/IGNITE-5461
>
> Thanks,
> Mikhail.
>
>
> 2017-06-09 1:48 GMT+03:00 waterg <je...@gmail.com>:
>
>> Hello,
>>
>> has anyone used visor to check the memory usage in 2.0?
>> I set up a custom region and used the custom region in the cache
>> configuration.
>> But when I used visor, it shows that all the entries are on heap. Should I
>> do something different?
>>
>> memory config:
>>  <property name="memoryConfiguration">
>>             <bean
>> class="org.apache.ignite.configuration.MemoryConfiguration">
>>
>>                 <property name="memoryPolicies">
>>                     <list>
>>                         <bean
>> class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
>>                             <property name="name" value="customRegion"/>
>>
>>                             <property name="initialSize" value="#{1 *
>> 1024 *
>> 1024 * 1024}"/>
>>
>>                             <property name="maxSize" value="#{40 * 1024 *
>> 1024 * 1024}"/>
>>
>>                             <property name="swapFilePath" value="~/swap"
>> />
>>                         </bean>
>>                     </list>
>>                 </property>
>>             </bean>
>>         </property>
>>
>> part of cache config
>>                 <bean
>> class="org.apache.ignite.configuration.CacheConfiguration">
>>
>>                     <property name="name" value="sampleCache"/>
>>                     <property name="memoryPolicyName"
>> value="customRegion"/>
>>                     <property name="cacheMode" value="PARTITIONED"/>
>>                     <property name="atomicityMode" value="TRANSACTIONAL"/>
>>
>> display of cache -a in visor
>>
>> Nodes for: sampeCache(@c1)
>> +===========================================================
>> ===================================================
>> +
>> |      Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time
>> |
>> Size         | Hi/Mi/Rd/Wr                                       |
>> +===========================================================
>> ===================================================
>> +
>> | 8B41D11E(@n0), xxx.xxx.xxx.118 | 8    | 5.27 %    | 0.33 %   |
>> 00:01:26:659 | Total: 2000          | Hi: 0
>> |
>> |                            |      |           |          |
>> |
>> Heap: 2000         | Mi: 0                                             |
>> |                            |      |           |          |
>> |
>> Off-Heap: 0        | Rd: 0                                             |
>> |                            |      |           |          |
>> |
>> Off-Heap Memory: 0 | Wr: 0                                             |
>> +-----------------------------------------------------------
>> ---------------------------------------------------
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/Ignite-2-0-off-heap-memory-tp13535.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>

Re: Ignite 2.0 off-heap memory

Posted by Michael Cherkasov <mi...@gmail.com>.
Hi Jessie,

With your configuration Ignites 2.0 stores data in Off Heap memory, but
visor shows
wrong statistics, I created a ticket for this issue:

https://issues.apache.org/jira/browse/IGNITE-5461

Thanks,
Mikhail.


2017-06-09 1:48 GMT+03:00 waterg <je...@gmail.com>:

> Hello,
>
> has anyone used visor to check the memory usage in 2.0?
> I set up a custom region and used the custom region in the cache
> configuration.
> But when I used visor, it shows that all the entries are on heap. Should I
> do something different?
>
> memory config:
>  <property name="memoryConfiguration">
>             <bean
> class="org.apache.ignite.configuration.MemoryConfiguration">
>
>                 <property name="memoryPolicies">
>                     <list>
>                         <bean
> class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
>                             <property name="name" value="customRegion"/>
>
>                             <property name="initialSize" value="#{1 * 1024
> *
> 1024 * 1024}"/>
>
>                             <property name="maxSize" value="#{40 * 1024 *
> 1024 * 1024}"/>
>
>                             <property name="swapFilePath" value="~/swap" />
>                         </bean>
>                     </list>
>                 </property>
>             </bean>
>         </property>
>
> part of cache config
>                 <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>
>                     <property name="name" value="sampleCache"/>
>                     <property name="memoryPolicyName"
> value="customRegion"/>
>                     <property name="cacheMode" value="PARTITIONED"/>
>                     <property name="atomicityMode" value="TRANSACTIONAL"/>
>
> display of cache -a in visor
>
> Nodes for: sampeCache(@c1)
> +===========================================================
> ===================================================
> +
> |      Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |
> Size         | Hi/Mi/Rd/Wr                                       |
> +===========================================================
> ===================================================
> +
> | 8B41D11E(@n0), xxx.xxx.xxx.118 | 8    | 5.27 %    | 0.33 %   |
> 00:01:26:659 | Total: 2000          | Hi: 0
> |
> |                            |      |           |          |              |
> Heap: 2000         | Mi: 0                                             |
> |                            |      |           |          |              |
> Off-Heap: 0        | Rd: 0                                             |
> |                            |      |           |          |              |
> Off-Heap Memory: 0 | Wr: 0                                             |
> +-----------------------------------------------------------
> ---------------------------------------------------
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-2-0-off-heap-memory-tp13535.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>