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 914F8200CA8 for ; Thu, 15 Jun 2017 11:43:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8FD99160BEE; Thu, 15 Jun 2017 09:43:05 +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 D52F0160BC4 for ; Thu, 15 Jun 2017 11:43:04 +0200 (CEST) Received: (qmail 56039 invoked by uid 500); 15 Jun 2017 09:43:04 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 56030 invoked by uid 99); 15 Jun 2017 09:43:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2017 09:43:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B5775CEBCE for ; Thu, 15 Jun 2017 09:43:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5yDAWzyrwKqH for ; Thu, 15 Jun 2017 09:43:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 419DE5FCD2 for ; Thu, 15 Jun 2017 09:43:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 83B1CE0652 for ; Thu, 15 Jun 2017 09:43:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1257121D8F for ; Thu, 15 Jun 2017 09:43:00 +0000 (UTC) Date: Thu, 15 Jun 2017 09:43:00 +0000 (UTC) From: "Dmitriy Pavlov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-5490) Implement replacement for obsolete CacheMetrics#getOffHeapAllocatedSize MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 15 Jun 2017 09:43:05 -0000 [ https://issues.apache.org/jira/browse/IGNITE-5490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050235#comment-16050235 ] Dmitriy Pavlov commented on IGNITE-5490: ---------------------------------------- This behaviour was also noticed by user http://apache-ignite-users.70518.x6.nabble.com/Ignite-Cache-Metrics-td13624.html > Implement replacement for obsolete CacheMetrics#getOffHeapAllocatedSize > ----------------------------------------------------------------------- > > Key: IGNITE-5490 > URL: https://issues.apache.org/jira/browse/IGNITE-5490 > Project: Ignite > Issue Type: Improvement > Components: cache > Affects Versions: 2.0 > Reporter: Ivan Rakov > > With new 2.0 architecture, many caches can share one memory policy. Memory metrics allows to measure memory usage (loaded pages) for the whole policy. However, there's also a need to measure how much memory (or pages) is used by each cache. > Before 2.0 such information was accessible with CacheMetrics#getOffHeapAllocatedSize, but current implemetation returns 0. > We should either implement it or provide alternative metrics (e. g. approximate number of loaded pages per cache). Please note that precise number of loaded pages per cache is not defined - one page can contain entries of different caches. -- This message was sent by Atlassian JIRA (v6.4.14#64029)