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 14C95200BE7 for ; Tue, 20 Dec 2016 09:41:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 135C5160B29; Tue, 20 Dec 2016 08:41:51 +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 5E014160B1B for ; Tue, 20 Dec 2016 09:41:50 +0100 (CET) Received: (qmail 35055 invoked by uid 500); 20 Dec 2016 08:41:49 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 35043 invoked by uid 99); 20 Dec 2016 08:41:49 -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; Tue, 20 Dec 2016 08:41:49 +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 C970C18014B for ; Tue, 20 Dec 2016 08:41:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=evam-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ok25ABUStcrs for ; Tue, 20 Dec 2016 08:41:47 +0000 (UTC) Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5722E5FAD4 for ; Tue, 20 Dec 2016 08:41:47 +0000 (UTC) Received: by mail-qk0-f175.google.com with SMTP id q68so41559628qki.1 for ; Tue, 20 Dec 2016 00:41:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evam-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=43PySGo6fY7AZxInUbfLlV0BBpSk0Ik8t5rswwZxb9E=; b=Glz4esIqqbLa/zaLQHN85hovHDI7W6bTKtuQe958WbZwIHX6SXsIaTc1ReksXC+51o YPIbTQCGKSlFid9jnFtWWeIoNFFaviljdoR/6w9IWDYMepywB2XfrcSQ+Lu57+rVQEw+ vjSk0oUCwZza7/pQaW6YnWrP2GMt8418FXixbaNWcDJZCRtedudsGool+1XUvK1BnAP/ NlD78v/HmS6d7mX/7JnV7LaujQclRzfE3pa4yLFWlIuVzl+aWJHm2szulsJK5HyjD83j b9BUeeIi6aqUs61oUZO2aFE1XbJrSClRWCxSzrrbL99tWWExPpU7jRmeRlGHs/peNQNo Tv4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=43PySGo6fY7AZxInUbfLlV0BBpSk0Ik8t5rswwZxb9E=; b=hQdDR7ruXW8bIU0IZkpz9Odu7T75v1VYdJx+vu+HNibpZ4NSCMbsjlq5fs87QPwMEl 0wyJpizDJIOmWI+jqu54pCpQfJ2lRLRU5ty37lbSXh4nzeDQv0AC+UDsAuVfRTyYB3+0 LW0LDp11CjpZj3zWmZfTGjlX6/ZxYA07Acc+szSiZcbXhdtm5ph3990trxP0ECQczCmY /JCAPNPj7bfik6eRwBBqO6VjdMepf8SRmwUFGfgYixsd0C27+fRR5iOikhCSul+O/xdm 5feXFs0N0np9PcKYz3iMkonHkpzu5Y9flRjg0CL1O7UFXdZHESgLEITSkWnoxpSEZBYu +Xdw== X-Gm-Message-State: AIkVDXKHONBqmgzECzSls78PRgqRA/Isi+BiwDCJ5+2ReE3FjTvPo1BcIFv4lr3BebUnFjfpwQnWWXip/5qaSQ== X-Received: by 10.55.207.78 with SMTP id e75mr5867767qkj.36.1482223302187; Tue, 20 Dec 2016 00:41:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.172.251 with HTTP; Tue, 20 Dec 2016 00:41:41 -0800 (PST) From: Alper Tekinalp Date: Tue, 20 Dec 2016 11:41:41 +0300 Message-ID: Subject: Cache Metrics To: dev@ignite.apache.org, user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1145b7b867b0ab0544130137 archived-at: Tue, 20 Dec 2016 08:41:51 -0000 --001a1145b7b867b0ab0544130137 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all. I have the following code: IgniteConfiguration igniteConfiguration =3D new IgniteConfiguration= (); igniteConfiguration.setGridName("alper"); Ignite start =3D Ignition.start(igniteConfiguration); CacheConfiguration configuration =3D new CacheConfiguration(); configuration.setAtomicityMode(CacheAtomicityMode.ATOMIC) .setCacheMode(CacheMode.PARTITIONED) .setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED) .setRebalanceMode(CacheRebalanceMode.SYNC) .setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC) .setRebalanceThrottle(100) .setRebalanceBatchSize(2*1024*1024) .setBackups(1) .setName("cemil") .setEagerTtl(false); start.getOrCreateCache(configuration); IgniteCache cemil =3D start.getOrCreateCache("cemil= "); cemil.put("1", "10"); cemil.put("2", "10"); cemil.put("3", "10"); cemil.put("4", "10"); System.out.println(cemil.metrics().getOffHeapAllocatedSize()); System.out.println(cemil.metrics().getOffHeapBackupEntriesCount()); System.out.println(cemil.metrics().getOffHeapGets()); System.out.println(cemil.metrics().getOffHeapHits()); System.out.println(cemil.metrics().getOffHeapMisses()); System.out.println(cemil.metrics().getOffHeapPuts()); System.out.println(cemil.metrics().getOffHeapEvictions()); System.out.println(cemil.metrics().getOffHeapHitPercentage()); All prints 0. Is that normal? Am i doing something wrong? --=20 Alper Tekinalp Software Developer Evam Streaming Analytics Atat=C3=BCrk Mah. Turgut =C3=96zal Bulv. Gardenya 5 Plaza K:6 Ata=C5=9Fehir 34758 =C4=B0STANBUL Tel: +90 216 455 01 53 Fax: +90 216 455 01 54 www.evam.com.tr --001a1145b7b867b0ab0544130137--