From dev-return-13137-apmail-ignite-dev-archive=ignite.apache.org@ignite.apache.org Fri May 27 12:50:05 2016 Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7093A19EFD for ; Fri, 27 May 2016 12:50:05 +0000 (UTC) Received: (qmail 92261 invoked by uid 500); 27 May 2016 12:50:05 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 92214 invoked by uid 500); 27 May 2016 12:50:05 -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 92202 invoked by uid 99); 27 May 2016 12:50:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 12:50:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7DD5AC9FDC for ; Fri, 27 May 2016 12:50:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MJY3EQx0nkyF for ; Fri, 27 May 2016 12:50:02 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 59B905F476 for ; Fri, 27 May 2016 12:50:02 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id s64so21492066lfe.0 for ; Fri, 27 May 2016 05:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=4aWKuHIS/bgZQtjlm/XOpP2eM9XFQQ/H1EfJfgZBueQ=; b=NledR1TItTzhuNfhkDjApT3uYM8q00l+XcFKvh0jODiJ3HUTLG4cm+8jggf/Rf8qmX zNbhizIeKzU4NdvjNRw6aa4bwiqBV8lJEoq7NODYFGnVV7c+dXl0cFizvAQVyrqW7/hM 8nybT/+OmE81q5eqCEGlw5PwJ1IcMBioagd0KPbJJYcy9x/fCbb9fevOQsIhw1FdR6EU BnsXpAxhhOIHbnI/5LyUrEiespibw2tlx6mN3AZlSlAhpT6Y8ymT2eKVc8s30JVJ0J8q 6fDPd3621XTTQR1dz1G+2nHxes6pHwNvnJTm7KQYGp/urB9vuwE/gwv6r+LoKtroI/mT /XuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=4aWKuHIS/bgZQtjlm/XOpP2eM9XFQQ/H1EfJfgZBueQ=; b=Ibc7A6xz5n5aSTutRgwWgIqNK/rTiHLZRriUuKw5iZBMWKhpcBlwrSVYIOfJKU1Dz0 6pFmutvDE8ACX4xb2AS1EjzuUmeSf26DvSTbYM+y7vDKnkrwK3oJB7vK6OKShpZ+I8OS 96CAwSG6hUf4xRhJXtnG8hNb5035F1EwfE6NdWCJLMNr3SMLFPFJ+dwj8cAFohgVCSpf BbsdjDTWiWo696FncbjMchQUkr47sAOOK18lg0pEwzto1koUmy7JYsdfxfLezrvI/ZBA 6BCVeyCOkPl31FkBNcQ71x+ABlBha3Y1M6J5q6nfm5jpcsGyDNRnIffIIViAm77dIk9F KzoQ== X-Gm-Message-State: ALyK8tJwh1zjptw6Jxjy1jYrW7l8FfS/2v7Axd097AxJp/UMwhzEiMTyNu4sk5HpmL44c5zt X-Received: by 10.25.21.40 with SMTP id l40mr3753757lfi.225.1464353395438; Fri, 27 May 2016 05:49:55 -0700 (PDT) Received: from [10.0.0.12] ([109.188.127.86]) by smtp.gmail.com with ESMTPSA id l72sm2875034lfi.37.2016.05.27.05.49.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2016 05:49:54 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_4E444F39-12B4-4E90-BEE1-15D3A4D1DDB0" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: NonHeap memory usage metrics don't work as expected. From: Denis Magda In-Reply-To: Date: Fri, 27 May 2016 15:49:52 +0300 Cc: Alexey Kuznetsov Message-Id: References: To: dev@ignite.apache.org X-Mailer: Apple Mail (2.3124) --Apple-Mail=_4E444F39-12B4-4E90-BEE1-15D3A4D1DDB0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Vlad,=20 In my understanding you should include in the metrics information = provided by GridCacheAdapter.offHeapAllocatedSize(). This has to be done for every offheap based cache. This information = should be accumulated with the one that is already considered in = GridDiscoveryManager at the time the metrics are being created. Also probably Alexey Kuznetsov can suggest a solution here because as = far as I recall Visor command line has an ability of total off heap = usage calculation. =E2=80=94 Denis > On May 27, 2016, at 2:45 PM, Vladislav Pyatkov = wrote: >=20 > Igniters, >=20 > I trying to solve https://issues.apache.org/jira/browse/IGNITE-2616 > I see that the grid output statistics we use MemoryMXBean > (GridDiscoveryManager.java:150) and it does not take what we expect. > We have own implementation for manipulationg with offheap memory: > GridUnsafeMemory > which stores the necessary information = .GridUnsafeMemory#systemAllocatedSize > Why do not we create a MBean based GridInsafeTetory? > Can someone understood better and can offer a solution? --Apple-Mail=_4E444F39-12B4-4E90-BEE1-15D3A4D1DDB0--