ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vasiliy Sisko <vsi...@gridgain.com>
Subject Re: Question about number of total onheap and offheap cache entries.
Date Mon, 02 Oct 2017 11:38:59 GMT
Hello @Ray


You problem is already fixed in issue
https://issues.apache.org/jira/browse/IGNITE-6422.



On Sat, Sep 30, 2017 at 7:26 PM, Ray <rayliu@cisco.com> wrote:

> I have a cache with 1 million entries.
> This cache is set up with partitioned cache mode and two backup.
> So Ignite will store 3 million entries on all nodes, right?
> But when I try run cache and cache command in vision, visor tells that this
> cache has total 7.5 million rows.
> So I'm confused, why does Ignite store 7.5 million rows?
> And I'm using Ignite 2.1, and by default the cache is stored off heap.
> But visor tells that 3.5 million entries are store onheap and the other 3.5
> million is stored offheap.
> Here's the visor log
>
> visor> cache
> [2017-09-30T12:15:10,497][INFO
> ][grid-nio-worker-tcp-comm-0-#65%null%][TcpCommunicationSpi] Established
> outgoing communication connection [locAddr=/10.29.42.49:34233,
> rmtAddr=sap-datanode3/10.29.42.46:49100]
> [2017-09-30T12:15:10,509][INFO
> ][grid-nio-worker-tcp-comm-1-#66%null%][TcpCommunicationSpi] Established
> outgoing communication connection [locAddr=/10.29.42.49:40210,
> rmtAddr=sap-datanode5/10.29.42.48:49100]
> [2017-09-30T12:15:10,514][INFO
> ][grid-nio-worker-tcp-comm-2-#67%null%][TcpCommunicationSpi] Established
> outgoing communication connection [locAddr=/127.0.0.1:47416,
> rmtAddr=/127.0.0.1:49100]
> [2017-09-30T12:15:10,521][INFO
> ][grid-nio-worker-tcp-comm-3-#68%null%][TcpCommunicationSpi] Established
> outgoing communication connection [locAddr=/10.29.42.49:17331,
> rmtAddr=sap-datanode4/10.29.42.47:49100]
> Time of the snapshot: 09/30/17, 12:15:10
> +===========================================================
> ==================================================================+
> |      Name(@)      |    Mode     | Nodes |     Entries (Heap / Off-heap)
> |   Hits    |  Misses   |   Reads   |  Writes   |
> +===========================================================
> ==================================================================+
> | DailyAggData(@c0) | PARTITIONED | 4     | min: 744297 (0 / 744297)
> | min: 0    | min: 0    | min: 0    | min: 0    |
> |                   |             |       | avg: 752107.50 (0.00 /
> 752107.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
> |                   |             |       | max: 758153 (0 / 758153)
> | max: 0    | max: 0    | max: 0    | max: 0    |
> +-----------------------------------------------------------
> ------------------------------------------------------------------+
>
> Use "-a" flag to see detailed statistics.
> visor> cache -a
> Time of the snapshot: 09/30/17, 12:15:16
> +===========================================================
> ==================================================================+
> |      Name(@)      |    Mode     | Nodes |     Entries (Heap / Off-heap)
> |   Hits    |  Misses   |   Reads   |  Writes   |
> +===========================================================
> ==================================================================+
> | DailyAggData(@c0) | PARTITIONED | 4     | min: 744297 (0 / 744297)
> | min: 0    | min: 0    | min: 0    | min: 0    |
> |                   |             |       | avg: 752107.50 (0.00 /
> 752107.50) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
> |                   |             |       | max: 758153 (0 / 758153)
> | max: 0    | max: 0    | max: 0    | max: 0    |
> +-----------------------------------------------------------
> ------------------------------------------------------------------+
>
> Cache 'DailyAggData(@c0)':
> +-----------------------------------------------------------+
> | Name(@)                     | DailyAggData(@c0)           |
> | Nodes                       | 4                           |
> | Total size Min/Avg/Max      | 744297 / 752107.50 / 758153 |
> |   Heap size Min/Avg/Max     | 0 / 0.00 / 0                |
> |   Off-heap size Min/Avg/Max | 744297 / 752107.50 / 758153 |
> +-----------------------------------------------------------+
>
> Nodes for: DailyAggData(@c0)
> +===========================================================
> ===================================================+
> |      Node ID8(@), IP       | CPUs | Heap Used | CPU Load |   Up Time    |
> Size         | Hi/Mi/Rd/Wr |
> +===========================================================
> ===================================================+
> | 7A05C9B9(@n3), | 56   | 8.31 %    | 0.00 %   | 30:06:45:032 | Total:
> 1507662       | Hi: 0       |
> |                            |      |           |          |              |
> Heap: 753831       | Mi: 0       |
> |                            |      |           |          |              |
> Off-Heap: 753831   | Rd: 0       |
> |                            |      |           |          |              |
> Off-Heap Memory: 0 | Wr: 0       |
> +----------------------------+------+-----------+----------+
> --------------+----------------------+-------------+
> | B39533DA(@n1), | 56   | 17.61 %   | 0.00 %   | 30:08:13:327 | Total:
> 1488594       | Hi: 0       |
> |                            |      |           |          |              |
> Heap: 744297       | Mi: 0       |
> |                            |      |           |          |              |
> Off-Heap: 744297   | Rd: 0       |
> |                            |      |           |          |              |
> Off-Heap Memory: 0 | Wr: 0       |
> +----------------------------+------+-----------+----------+
> --------------+----------------------+-------------+
> | 9A77BB1F(@n0),  | 56   | 36.69 %   | 0.00 %   | 30:08:22:742 | Total:
> 1516306       | Hi: 0       |
> |                            |      |           |          |              |
> Heap: 758153       | Mi: 0       |
> |                            |      |           |          |              |
> Off-Heap: 758153   | Rd: 0       |
> |                            |      |           |          |              |
> Off-Heap Memory: 0 | Wr: 0       |
> +----------------------------+------+-----------+----------+
> --------------+----------------------+-------------+
> | 9EA73689(@n2),  | 56   | 26.96 %   | 0.03 %   | 30:07:55:786 | Total:
> 1504298       | Hi: 0       |
> |                            |      |           |          |              |
> Heap: 752149       | Mi: 0       |
> |                            |      |           |          |              |
> Off-Heap: 752149   | Rd: 0       |
> |                            |      |           |          |              |
> Off-Heap Memory: 0 | Wr: 0       |
> +-----------------------------------------------------------
> ---------------------------------------------------+
>
> And I get the total entries using sql query "select count(*) from
> MeetingAggValue;", the result is 1,002,810
>
> Thanks
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>



-- 
Vasiliy Sisko
GridGain Systems
www.gridgain.com

Mime
View raw message