[ 
https://issues.apache.org/jira/browse/IGNITE-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Konstantinov updated IGNITE-5034:
---------------------------------------
    Description: 
Look at example of cache command result in AI 2.0
{code}
visor> cache -c=c_partitioned -a
Time of the snapshot: 04/20/17, 14:18:30
+==================================================================================================================================+
|      Name(@)       |    Mode     | Nodes |       Entries (Heap / Off-heap)    
   |   Hits    |  Misses   |   Reads   |  Writes   |
+==================================================================================================================================+
| c_partitioned(@c0) | PARTITIONED | 2     | min: 134588 (100001 / 34587)       
   | min: 0    | min: 0    | min: 0    | min: 0    |
|                    |             |       | avg: 150001.50 (100001.00 / 
50000.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
|                    |             |       | max: 165415 (100001 / 65414)       
   | max: 0    | max: 0    | max: 0    | max: 0    |
+----------------------------------------------------------------------------------------------------------------------------------+

Cache 'c_partitioned(@c0)':
+-----------------------------------------------------------+
| Name(@)                     | c_partitioned(@c0)          |
| Nodes                       | 2                           |
| Total size Min/Avg/Max      | 134588 / 150001.50 / 165415 |
|   Heap size Min/Avg/Max     | 100001 / 100001.00 / 100001 |
|   Off-heap size Min/Avg/Max | 34587 / 50000.50 / 65414    |
+-----------------------------------------------------------+

Nodes for: c_partitioned(@c0)
+===============================================================================================================+
|       Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |    
     Size         | Hi/Mi/Rd/Wr |
+===============================================================================================================+
| AF7CAEFE(@n0), 192.168.1.40 | 8    | 23.76 %   | 8.20 %   | 00:01:19:153 | 
Total: 165415        | Hi: 0       |
|                             |      |           |          |              |   
Heap: 100001       | Mi: 0       |
|                             |      |           |          |              |   
Off-Heap: 65414    | Rd: 0       |
|                             |      |           |          |              |   
Off-Heap Memory: 0 | Wr: 0       |
+-----------------------------+------+-----------+----------+--------------+----------------------+-------------+
| C36C23B3(@n1), 192.168.1.40 | 8    | 11.62 %   | 8.80 %   | 00:01:19:209 | 
Total: 134588        | Hi: 0       |
|                             |      |           |          |              |   
Heap: 100001       | Mi: 0       |
|                             |      |           |          |              |   
Off-Heap: 34587    | Rd: 0       |
|                             |      |           |          |              |   
Off-Heap Memory: 0 | Wr: 0       |
+---------------------------------------------------------------------------------------------------------------+
{code}

This cache has onheapCacheEnabled = false and it means that all data should be 
in off-heap by default but visor shows wrong info.
The configuration of this cache is
{code}
    <bean id="c_partitioned" 
class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="c_partitioned"/>
        <property name="onheapCacheEnabled" value="false"/>
    </bean>
{code}

My test load puts into the cache 100001 of keys and I'm expected that all keys 
should be in off-heap.


  was:
Look at example of cache command result in AI 2.0
{code}
visor> cache -c=c_partitioned -a
Time of the snapshot: 04/20/17, 14:18:30
+==================================================================================================================================+
|      Name(@)       |    Mode     | Nodes |       Entries (Heap / Off-heap)    
   |   Hits    |  Misses   |   Reads   |  Writes   |
+==================================================================================================================================+
| c_partitioned(@c0) | PARTITIONED | 2     | min: 134588 (100001 / 34587)       
   | min: 0    | min: 0    | min: 0    | min: 0    |
|                    |             |       | avg: 150001.50 (100001.00 / 
50000.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
|                    |             |       | max: 165415 (100001 / 65414)       
   | max: 0    | max: 0    | max: 0    | max: 0    |
+----------------------------------------------------------------------------------------------------------------------------------+

Cache 'c_partitioned(@c0)':
+-----------------------------------------------------------+
| Name(@)                     | c_partitioned(@c0)          |
| Nodes                       | 2                           |
| Total size Min/Avg/Max      | 134588 / 150001.50 / 165415 |
|   Heap size Min/Avg/Max     | 100001 / 100001.00 / 100001 |
|   Off-heap size Min/Avg/Max | 34587 / 50000.50 / 65414    |
+-----------------------------------------------------------+

Nodes for: c_partitioned(@c0)
+===============================================================================================================+
|       Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |    
     Size         | Hi/Mi/Rd/Wr |
+===============================================================================================================+
| AF7CAEFE(@n0), 192.168.1.40 | 8    | 23.76 %   | 8.20 %   | 00:01:19:153 | 
Total: 165415        | Hi: 0       |
|                             |      |           |          |              |   
Heap: 100001       | Mi: 0       |
|                             |      |           |          |              |   
Off-Heap: 65414    | Rd: 0       |
|                             |      |           |          |              |   
Off-Heap Memory: 0 | Wr: 0       |
+-----------------------------+------+-----------+----------+--------------+----------------------+-------------+
| C36C23B3(@n1), 192.168.1.40 | 8    | 11.62 %   | 8.80 %   | 00:01:19:209 | 
Total: 134588        | Hi: 0       |
|                             |      |           |          |              |   
Heap: 100001       | Mi: 0       |
|                             |      |           |          |              |   
Off-Heap: 34587    | Rd: 0       |
|                             |      |           |          |              |   
Off-Heap Memory: 0 | Wr: 0       |
+---------------------------------------------------------------------------------------------------------------+
{code}

This cache has onheapCacheEnabled = false and it means that all data should be 
in off-heap by default but visor shows wrong info.
The configuration of this cache is
{code}
    <bean id="c_partitioned" 
class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="c_partitioned"/>
        <property name="onheapCacheEnabled" value="false"/>
    </bean>
{code}

My test load puts into the cache 100001 key and I'm expected that all keys 
should be in off-heap.



> visorcmd:  we need to fix cache info visor prints
> -------------------------------------------------
>
>                 Key: IGNITE-5034
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5034
>             Project: Ignite
>          Issue Type: Bug
>          Components: visor
>    Affects Versions: 2.0
>            Reporter: Pavel Konstantinov
>
> Look at example of cache command result in AI 2.0
> {code}
> visor> cache -c=c_partitioned -a
> Time of the snapshot: 04/20/17, 14:18:30
> +==================================================================================================================================+
> |      Name(@)       |    Mode     | Nodes |       Entries (Heap / Off-heap)  
>      |   Hits    |  Misses   |   Reads   |  Writes   |
> +==================================================================================================================================+
> | c_partitioned(@c0) | PARTITIONED | 2     | min: 134588 (100001 / 34587)     
>      | min: 0    | min: 0    | min: 0    | min: 0    |
> |                    |             |       | avg: 150001.50 (100001.00 / 
> 50000.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
> |                    |             |       | max: 165415 (100001 / 65414)     
>      | max: 0    | max: 0    | max: 0    | max: 0    |
> +----------------------------------------------------------------------------------------------------------------------------------+
> Cache 'c_partitioned(@c0)':
> +-----------------------------------------------------------+
> | Name(@)                     | c_partitioned(@c0)          |
> | Nodes                       | 2                           |
> | Total size Min/Avg/Max      | 134588 / 150001.50 / 165415 |
> |   Heap size Min/Avg/Max     | 100001 / 100001.00 / 100001 |
> |   Off-heap size Min/Avg/Max | 34587 / 50000.50 / 65414    |
> +-----------------------------------------------------------+
> Nodes for: c_partitioned(@c0)
> +===============================================================================================================+
> |       Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |  
>        Size         | Hi/Mi/Rd/Wr |
> +===============================================================================================================+
> | AF7CAEFE(@n0), 192.168.1.40 | 8    | 23.76 %   | 8.20 %   | 00:01:19:153 | 
> Total: 165415        | Hi: 0       |
> |                             |      |           |          |              |  
>  Heap: 100001       | Mi: 0       |
> |                             |      |           |          |              |  
>  Off-Heap: 65414    | Rd: 0       |
> |                             |      |           |          |              |  
>  Off-Heap Memory: 0 | Wr: 0       |
> +-----------------------------+------+-----------+----------+--------------+----------------------+-------------+
> | C36C23B3(@n1), 192.168.1.40 | 8    | 11.62 %   | 8.80 %   | 00:01:19:209 | 
> Total: 134588        | Hi: 0       |
> |                             |      |           |          |              |  
>  Heap: 100001       | Mi: 0       |
> |                             |      |           |          |              |  
>  Off-Heap: 34587    | Rd: 0       |
> |                             |      |           |          |              |  
>  Off-Heap Memory: 0 | Wr: 0       |
> +---------------------------------------------------------------------------------------------------------------+
> {code}
> This cache has onheapCacheEnabled = false and it means that all data should 
> be in off-heap by default but visor shows wrong info.
> The configuration of this cache is
> {code}
>     <bean id="c_partitioned" 
> class="org.apache.ignite.configuration.CacheConfiguration">
>         <property name="name" value="c_partitioned"/>
>         <property name="onheapCacheEnabled" value="false"/>
>     </bean>
> {code}
> My test load puts into the cache 100001 of keys and I'm expected that all 
> keys should be in off-heap.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to