Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3B19E200D14 for ; Tue, 3 Oct 2017 08:28:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 390D51609DD; Tue, 3 Oct 2017 06:28:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7FE841609D2 for ; Tue, 3 Oct 2017 08:28:53 +0200 (CEST) Received: (qmail 83190 invoked by uid 500); 3 Oct 2017 06:28:52 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 83181 invoked by uid 99); 3 Oct 2017 06:28:52 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 06:28:52 +0000 Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A11C01A00A6 for ; Tue, 3 Oct 2017 06:28:51 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id d17so8468271lfe.2 for ; Mon, 02 Oct 2017 23:28:50 -0700 (PDT) X-Gm-Message-State: AHPjjUiPXMyNDqaOorfnR8PLjR8GdbOU5o/nbEmgZgSN3JB67rICs0zY GKZt+fyo5As0Bc43m2iH2g210dQKeMK0qjxdp350Fw== X-Google-Smtp-Source: AOwi7QDOxIuflWu2TiJWIebwDgBbbtHam09fbQ4i+yDc+mHtCQ/TEbcuLH49DgaYcMZpU3ahXr2Xt3TuF7DfwbTY008= X-Received: by 10.46.43.157 with SMTP id r29mr8072776ljr.56.1507012128777; Mon, 02 Oct 2017 23:28:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.209.69 with HTTP; Mon, 2 Oct 2017 23:28:48 -0700 (PDT) In-Reply-To: <1506976555258-0.post@n6.nabble.com> References: <1506976555258-0.post@n6.nabble.com> From: Alexey Kuznetsov Date: Tue, 3 Oct 2017 13:28:48 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Cache size in Memory To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c074a729bb92f055a9e9a9b" archived-at: Tue, 03 Oct 2017 06:28:54 -0000 --94eb2c074a729bb92f055a9e9a9b Content-Type: text/plain; charset="UTF-8" Hi, Take a look at documentation: https://apacheignite.readme.io/docs/memory-metrics You can multiply TotalAllocatedPages on page size to get an estimation. On Tue, Oct 3, 2017 at 3:35 AM, pradeepchanumolu wrote: > Hi , > > Can someone let me know how to get the stats of the cache like how large > (like how many MB/GB) is the cache in memory (both on and off heap)? > > Currently, I can only get number of entries in the cache using the > cache.size(CachePeekMode.ONHEAP), cache.size(CachePeekMode.OFFHEAP). > > cache.metrics() returns the Cache Metrics but doesn't have any methods to > return the total size in gb/mb of the cache in memory. > > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > > -- > Alexey Kuznetsov > > --94eb2c074a729bb92f055a9e9a9b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Take a look at documentation:=C2=A0= https://apac= heignite.readme.io/docs/memory-metrics

You can= multiply=C2=A0TotalAllocatedPages on page size to get an estimation.
=

On Tue, Oct= 3, 2017 at 3:35 AM, pradeepchanumolu <pradeepbaji@gmail.com> wrote:
Hi ,

Can someone let me know how to get the stats of the cache like how large (like how many MB/GB) is the cache in memory (both on and off heap)?

Currently, I can only get number of entries in the cache using the
cache.size(CachePeekMode.ONHEAP), cache.size(CachePeekMode.OFFHEA= P).

cache.metrics() returns the Cache Metrics but doesn't have any methods = to
return the total size in gb/mb of the cache in memory.





--
Sent from: http://apache-ignite-users.70518.x6.= nabble.com/

--
Alexey Kuznetsov


--94eb2c074a729bb92f055a9e9a9b--