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 7D75B200CD3 for ; Fri, 28 Jul 2017 14:23:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7BB2516CB58; Fri, 28 Jul 2017 12:23:55 +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 F26E716CB51 for ; Fri, 28 Jul 2017 14:23:53 +0200 (CEST) Received: (qmail 83483 invoked by uid 500); 28 Jul 2017 12:23:53 -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 83473 invoked by uid 99); 28 Jul 2017 12:23:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2017 12:23:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7B2AE1807D3 for ; Fri, 28 Jul 2017 12:23:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qp4sBJ2NJKGz for ; Fri, 28 Jul 2017 12:23:50 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5CA4160CF8 for ; Fri, 28 Jul 2017 12:23:50 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id y15so90839774lfd.5 for ; Fri, 28 Jul 2017 05:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=WJO7XNcafRrkq0i1JAK4fvcxMubmlN18cf12KzQBIkM=; b=dlNuqqOgEqcH8SbO0VCkLf7/DfGl+8rzA5DY3RlI668x3YKc5HAFbdSjbS2HMDZmLC 2nRF5gmJ7nAzXVvqsvKl8KNIkkUgDJkO1HlbTWsUs32ltWb24lGthAgGPwK0GJnlHhhA vOLT55fEd9JaFMvb+vegKiaqp3bX5eaekJ7wKy7dwWxAdYXUfNB3mpvFnn5+0+8BLsXs aw2dPd8uDHXB4ZDkcHooJ7GKkGZqXCDJgqU1LYdMlsTy9sthCa5OfeX6eIiFe1B/3VJL 0WPjZFWIbChzYeEApEGC3bADo9Zie6PI1+Z4uMolPOxyAgj4TXo2vQjnpULXPs7NPMfo Em0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=WJO7XNcafRrkq0i1JAK4fvcxMubmlN18cf12KzQBIkM=; b=L5L74CVbikdo94NBdfIvRcSv7NS/j00DaWHbCX3TniNL4jMmcmlj2A/3Qapgziz4+F ByijKDSpDvAulrKL+Y1RTfqIOUFln0iQwuYjRIPr/F+ifi8Q3DOuEPIbeT2xkzdRdgGl nD57E83rbXf2euKPCeXFAs6SL2GAVB2HOIGYOSElgIC95BLJtABpvSLZ32BsW44W+q/+ FMhBSYrwsLLeLY1iEX5N1dkLRq46nrNijSnMCSuQgMZBfhaoNwMZTC6GEQ/9+IhUt49y Omh/o2xeBp3PZgsO/IytPUbks1AQ0CqCSsTJqig8pttrMNIyq8dlSG4cEFqmZRKEOsuU lvZA== X-Gm-Message-State: AIVw1138xr0dO76qrwaWLVo89s/wYjgTgOrafKafU/iVEq/bMlRso/hu VhNvJ04CR+Q5cshoU6M= X-Received: by 10.46.75.2 with SMTP id y2mr3204801lja.78.1501244629657; Fri, 28 Jul 2017 05:23:49 -0700 (PDT) Received: from [10.0.1.4] (broadband-178-140-235-81.moscow.rt.ru. [178.140.235.81]) by smtp.gmail.com with ESMTPSA id 9sm4449525ljo.66.2017.07.28.05.23.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Jul 2017 05:23:49 -0700 (PDT) From: Ali Content-Type: multipart/alternative; boundary="Apple-Mail=_2C0FEFC6-F2E4-4CB7-B0B9-5FB8C61A8574" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: CacheMetrics Offheap size Date: Fri, 28 Jul 2017 15:23:48 +0300 References: <64192166-E7D2-4986-A390-F7073B744AF5@gmail.com> To: user@ignite.apache.org In-Reply-To: <64192166-E7D2-4986-A390-F7073B744AF5@gmail.com> Message-Id: X-Mailer: Apple Mail (2.3273) archived-at: Fri, 28 Jul 2017 12:23:55 -0000 --Apple-Mail=_2C0FEFC6-F2E4-4CB7-B0B9-5FB8C61A8574 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 P.S. Ignite version 2.1.0 With best regards Alisher Alimov alimovalisher@gmail.com > On 28 Jul 2017, at 15:20, Ali wrote: >=20 > Hello! >=20 > I have problem with retrieving actual allocated size in offheap for = cache, CacheMetrics#offHeapAllocatedSize always return 0 >=20 > CacheConfiguration:=20 >=20 > cacheConfiguration.setBackups(1); > cacheConfiguration.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); > cacheConfiguration.setCacheMode(CacheMode.REPLICATED); > cacheConfiguration.setCopyOnRead(true); > cacheConfiguration.setReadFromBackup(true); > cacheConfiguration.setManagementEnabled(true); > cacheConfiguration.setStatisticsEnabled(true); > cacheConfiguration.setMemoryPolicyName(=E2=80=9Ctest"); > = cacheConfiguration.setWriteSynchronizationMode(CacheWriteSynchronizationMo= de.FULL_SYNC); >=20 > Here are CacheMetrics=20 >=20 > "CONTRACTORS": { > "offHeapGets": 0, > "offHeapPuts": 0, > "offHeapHits": 0, > "offHeapMisses": 0, > "offHeapAllocatedSize": 0, > "size": 1729, > "keySize": 1729, > "txThreadMapSize": 0, > "txXidMapSize": 0, > "txCommitQueueSize": 0, > "txPrepareQueueSize": 0, > "txCommittedVersionsSize": 7, > "txRolledbackVersionsSize": 7, > "txDhtThreadMapSize": -1, > "txDhtXidMapSize": -1, > "txDhtCommitQueueSize": 0, > "txDhtPrepareQueueSize": 0, > "txDhtCommittedVersionsSize": -1, > "txDhtRolledbackVersionsSize": -1, > "writeBehindFlushSize": -1, > "writeBehindStoreBatchSize": -1, > "keysToRebalanceLeft": 0, > "rebalancingKeysRate": 0, > "rebalancingBytesRate": 0, > "keyType": "java.lang.Object", > "empty": false, > "valueType": "java.lang.Object", > "storeByValue": true, > "writeBehindEnabled": false, > "writeBehindFlushFrequency": -1, > "writeBehindFlushThreadCount": -1, > "readThrough": false, > "writeThrough": false, > "statisticsEnabled": true, > "managementEnabled": true, > "cacheRemovals": 0, > "cacheGets": 0, > "cachePuts": 0, > "cacheHits": 0, > "cacheMisses": 0, > "cacheHitPercentage": 0.0, > "cacheMissPercentage": 0.0, > "cacheEvictions": 0, > "averageGetTime": 0.0, > "averagePutTime": 0.0, > "averageRemoveTime": 0.0, > "averageTxCommitTime": 0.0, > "averageTxRollbackTime": 0.0, > "cacheTxCommits": 0, > "cacheTxRollbacks": 0, > "offHeapRemovals": 0, > "offHeapEvictions": 0, > "offHeapHitPercentage": 0.0, > "offHeapMissPercentage": 0.0, > "offHeapEntriesCount": 1729, > "heapEntriesCount": 0, > "offHeapPrimaryEntriesCount": 1729, > "offHeapBackupEntriesCount": 0, > "dhtEvictQueueCurrentSize": -1, > "txStartVersionCountsSize": 0, > "txDhtStartVersionCountsSize": 0, > "totalPartitionsCount": 512, > "rebalancingPartitionsCount": 0, > "writeBehindTotalCriticalOverflowCount": -1, > "writeBehindCriticalOverflowCount": -1, > "writeBehindErrorRetryCount": -1, > "writeBehindBufferSize": -1 > } >=20 >=20 > With best regards > Alisher Alimov > alimovalisher@gmail.com --Apple-Mail=_2C0FEFC6-F2E4-4CB7-B0B9-5FB8C61A8574 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 P.S. Ignite version 2.1.0



With best regards
Alisher Alimov
alimovalisher@gmail.com

On 28 Jul 2017, at 15:20, Ali <alimovalisher@gmail.com> wrote:

Hello!

I have problem with = retrieving actual allocated size in offheap for cache, = CacheMetrics#offHeapAllocatedSize always return 0
CacheConfiguration: 

cacheConfiguration.setBackups(1);
cacheConfiguration.setAtomicityMode(CacheAtomicityMode.<= /font>TRANSACTIONAL);
cacheConfiguration.setCacheMode(CacheMode.REPLICATED);
cacheConfiguration.setCopyOnRead(true);
cacheConfiguration.setReadFromBackup(true);
cacheConfiguration.setManagementEnabled(true);
cacheConfiguration.setStatisticsEnabled(true);
cacheConfiguration.setMemoryPolicyName(=E2=80=9Ctest");
cacheConfiguration.setWriteSynchronizationMode(CacheWriteSynchr= onizationMode.FULL_SYNC);

Here are CacheMetrics 

"CONTRACTORS":=
 {
"offHeapGets":= 0,
"offHeapPuts": 0,
"offHeapHits":= 0,
"offHeapMisses": 0,
"offHeapAllocatedSize": 0,
= "size": 1729,
"keySize": 1729,
"txThreadMapSize": 0,
"txXidMapSize": 0,
= "txCommitQueueSize": 0,
= "txPrepareQueueSize": 0,
= "txCommittedVersionsSize": 7,
= "txRolledbackVersionsSize": 7,
= "txDhtThreadMapSize": -1,
= "txDhtXidMapSize": -1,
= "txDhtCommitQueueSize": 0,
= "txDhtPrepareQueueSize": 0,
= "txDhtCommittedVersionsSize": -1,
"txDhtRolledbackVersionsSize": -1,
"writeBehindFlushSize": -1,
"writeBehindStoreBatchSize": -1,
"keysToRebalanceLeft": 0,
"rebalancingKeysRate": 0,
= "rebalancingBytesRate": 0,
= "keyType": "java.lang.Object",
"empty": false,
"valueType": "java.lang.Object",
"storeByValue": true,
"writeBehindEnabled": false,
"writeBehindFlushFrequency": -1,
"writeBehindFlushThreadCount": -1,
"readThrough": false,
"writeThrough": false,
"statisticsEnabled": true,
"managementEnabled": true,
"cacheRemovals": 0,
"cacheGets": = 0,
"cachePuts": 0,
"cacheHits": = 0,
"cacheMisses": 0,
"cacheHitPercentage": 0.0,
= "cacheMissPercentage": 0.0,
= "cacheEvictions": 0,
= "averageGetTime": 0.0,
= "averagePutTime": 0.0,
= "averageRemoveTime": 0.0,
= "averageTxCommitTime": 0.0,
= "averageTxRollbackTime": 0.0,
= "cacheTxCommits": 0,
= "cacheTxRollbacks": 0,
= "offHeapRemovals": 0,
= "offHeapEvictions": 0,
= "offHeapHitPercentage": 0.0,
= "offHeapMissPercentage": 0.0,
= "offHeapEntriesCount": 1729,
= "heapEntriesCount": 0,
= "offHeapPrimaryEntriesCount": 1729,
"offHeapBackupEntriesCount": 0,
"dhtEvictQueueCurrentSize": -1,
= "txStartVersionCountsSize": 0,
= "txDhtStartVersionCountsSize": 0,
"totalPartitionsCount": 512,
= "rebalancingPartitionsCount": 0,
"writeBehindTotalCriticalOverflowCount": -1,
"writeBehindCriticalOverflowCount": -1,
"writeBehindErrorRetryCount": -1,
"writeBehindBufferSize": -1
}


With best regards
Alisher Alimov
alimovalisher@gmail.com


= --Apple-Mail=_2C0FEFC6-F2E4-4CB7-B0B9-5FB8C61A8574--