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 008B4200D60 for ; Fri, 1 Dec 2017 14:42:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F34D0160C18; Fri, 1 Dec 2017 13:42:52 +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 445F7160BFB for ; Fri, 1 Dec 2017 14:42:52 +0100 (CET) Received: (qmail 19293 invoked by uid 500); 1 Dec 2017 13:42: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 19283 invoked by uid 99); 1 Dec 2017 13:42:51 -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, 01 Dec 2017 13:42:51 +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 7C3CBC2B47 for ; Fri, 1 Dec 2017 13:42:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.079 X-Spam-Level: ** X-Spam-Status: No, score=2.079 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KB_WAM_FROM_NAME_SINGLEWORD=0.2, RCVD_IN_DNSWL_NONE=-0.0001, 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=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eftHn6uFTVOm for ; Fri, 1 Dec 2017 13:42:49 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EDB685F3B8 for ; Fri, 1 Dec 2017 13:42:48 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id n138so3603996wmg.2 for ; Fri, 01 Dec 2017 05:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=AXY19ahljIs77Sh0Ymc3FtdoyzBKmEZlwKuIDFpQbTg=; b=ZmURjo2fO2zf1sIkKWIYvnylD7TXkq4xNolWCtSs574+n3u6XyQMbbN2X7dME0NKTs yB2wbCY3fLA/VxOpoynA/5bp75XH08qAepruUQcvg0xRerJ3BdXOPaUKVBMfAj8oSVu3 dgAv2k0Qo/vypMtBBJ7+4UgIuvemWIH1vrCk0+2aKCmF8MV6X/y+FNwojvc0kquLfGSo bZ9+0uhUP06WQzjR/HFxIxAOSPvyb8s7n4z7RbBFepmwjgdONAtXUG7VKs6Va/hqIpf1 ZSsaQcuu5qRTpZhZaRnbncAaUJuL90k+26Jg9AtHJRGSxtd0bAqH5FE4xkhR35okeZZH Ewig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=AXY19ahljIs77Sh0Ymc3FtdoyzBKmEZlwKuIDFpQbTg=; b=SGZTHTGkL+OoWsTvCcf9Mm7wnYEkforS7+kd7bQF9aVKp/dDNwKF7LdK+G3nlsHTej 346FMbNJX4WnxX6oJ+1DX8fgyNR5F83AtzdkN5rsNbJBogHI1KOa+d5KzoBPDdNao83b rhkt/fXs0v2OEkpjohpDNpy9EgNqa5GU68itHg1/lvYiWCgbosbbOUA77Du3vou3Rgpj UZiL0dzCyQk5TsaTyNYcWlBSIkaJkF/kOY0qjQnWh27Hv5DSlrxbCvAIyfZLD13IItGQ HI1m0SitSc6PC5ufkSQj8QljKPZzz9LJCffFwTLK2/lcYKs8PfbukLhp1HpXEooXp1ZB FdwA== X-Gm-Message-State: AJaThX4cTRRCIbn5sMnjBFH5Gp96jPArf2qVWn/XI9hhqcTKZJ0MlKrM sP5jZBUQyk+0ysHt9Dew2HtawuVjiY5zR1eAkjXTR2Jr X-Google-Smtp-Source: AGs4zMbecrMJsK1zVRSyOEnlZ3bVNmoQFAlcori4x7n6lQRzmXbHILD2Iin+13dd9PTbzat+5pRwPHMxf12Pex/23gs= X-Received: by 10.28.206.142 with SMTP id e136mr1387439wmg.27.1512135768358; Fri, 01 Dec 2017 05:42:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.172.210 with HTTP; Fri, 1 Dec 2017 05:42:47 -0800 (PST) In-Reply-To: <1512110706389-0.post@n6.nabble.com> References: <1512110706389-0.post@n6.nabble.com> From: Alexey Kukushkin Date: Fri, 1 Dec 2017 16:42:47 +0300 Message-ID: Subject: Re: Out of memory error To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c192b20534743055f478b87" archived-at: Fri, 01 Dec 2017 13:42:53 -0000 --94eb2c192b20534743055f478b87 Content-Type: text/plain; charset="UTF-8" Hi, You identified the problem right: there is not enough memory to handle 15G of Postgres data on your server. Your idea to configure a memory policy to increase available memory is right but 16G is also not enough. Ignite data size is noticeably larger (up to 3 times, depends on many factors like amount of indexes) than that of the relational DB data files on disk. You need to estimate how much memory you need. There are two options: - Theoretical - see here . - Empirical: enable memory metrics and load a smaller amount of entries into cache. Use JMX client to check "totalAllocatedPages" of the DataRegionMetricsMXBean on the server. Multiply the number by 4K to get total used memory in kilobytes. Then extrapolate to the max amount of entries you are going to have. Remember that Ignite saves you money by horizontal scaling. Just have 4 32G servers if you need 100G of RAM. --94eb2c192b20534743055f478b87 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

You i= dentified the problem right: there is not enough memory to handle 15G of Po= stgres data on your server. Your idea to configure a memory policy to incre= ase available memory is right but 16G is also not enough. Ignite data size = is noticeably larger (up to 3 times, depends on many factors like amount of= indexes) than that of the relational DB data files on disk.

You need to estimate= how much memory you need. There are two options:
  • Theoretical - see here.
  • Empirical: enable memory metrics and load= a smaller amount of entries into cache. Use JMX client to check "tota= lAllocatedPages" of the DataRegionMetricsMXBean on the server. Multipl= y the number by 4K to get total used memory in kilobytes. Then extrapolate = to the max amount of entries you are going to have.
Remember = that Ignite saves you money by horizontal scaling. Just have 4 32G servers = if you need 100G of RAM.=C2=A0
=C2=A0=


<= /div>
--94eb2c192b20534743055f478b87--