Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74809192CC for ; Tue, 5 Apr 2016 08:47:51 +0000 (UTC) Received: (qmail 76171 invoked by uid 500); 5 Apr 2016 08:47:51 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 76122 invoked by uid 500); 5 Apr 2016 08:47:51 -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 76112 invoked by uid 99); 5 Apr 2016 08:47:51 -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, 05 Apr 2016 08:47:51 +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 DD48E180534 for ; Tue, 5 Apr 2016 08:47:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled 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 HtTk1vxGVD-u for ; Tue, 5 Apr 2016 08:47:49 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CABB95F19B for ; Tue, 5 Apr 2016 08:47:48 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 5CABC2482954 for ; Tue, 5 Apr 2016 01:35:56 -0700 (PDT) Date: Tue, 5 Apr 2016 01:34:16 -0700 (PDT) From: Denis Magda To: user@ignite.apache.org Message-ID: <1459845256132-3930.post@n6.nabble.com> In-Reply-To: <001501d18f06$8523b2a0$8f6b17e0$@taqniatech.com> References: <001501d18f06$8523b2a0$8f6b17e0$@taqniatech.com> Subject: Re: Heap memory getting increase while doing cache.get() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Prabuddha, Cache.get() operation returns copy of an object stored in a cache by default. If you set CacheConfiguration.setCopyOnRead to false then a copy won't be created but you mustn't modify returned object directly because it can effect consistency. In any case the objects returned by cache.get() must be cleaned by Garbage Collector. Probably you should modify your GC settings to overcome application shutdown due to insufficient memory or long GC. Please set this generic recommended settings to see the difference https://apacheignite.readme.io/docs/performance-tips#tune-garbage-collection -- Denis -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Heap-memory-getting-increase-while-doing-cache-get-tp3925p3930.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.