Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-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 C19761999B for ; Thu, 14 Apr 2016 19:33:17 +0000 (UTC) Received: (qmail 22239 invoked by uid 500); 14 Apr 2016 19:33:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 22160 invoked by uid 500); 14 Apr 2016 19:33:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 22148 invoked by uid 99); 14 Apr 2016 19:33:13 -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; Thu, 14 Apr 2016 19:33:13 +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 12F9B180184 for ; Thu, 14 Apr 2016 19:33:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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 lc9GXMuODJtr for ; Thu, 14 Apr 2016 19:33:11 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4F5115FB0A for ; Thu, 14 Apr 2016 19:33:10 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id g185so114225031ioa.2 for ; Thu, 14 Apr 2016 12:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-transfer-encoding; bh=QEm+l5qcRRHRCIlAhu3MmuQzB87c74mxLqzsvvd/2rU=; b=hIBi6YXLXS0rjLgos43oTbF3BzC1QfMlmW49b4G8VzSMlDKT+If/ax591hQCGIDV+o 9tcNNtiB6Pg5perq3pGtgFXGf6wGNe/Aoc2U6pjrWTrWy4KsxjAeIjuIF4OS4L07Dx3p e19IhLLRjofeR+XddGf0Emb/sIwSotkIYkPh9Wy+lHSCimmUC9oMGa1ev0XNHr4f65tf bR13EakYlVpORQsyhh9X9iGj6Yi+JxmLRQCdA8wPIDwaxaam1pES5x6MOLJUlBWyCcEo 288tYC5AJyCEpvGizqdzgl+yjOETlGusxXIFLxdr82z5LKTQ3xLizVnYmo4gCrRZncP9 vNwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=QEm+l5qcRRHRCIlAhu3MmuQzB87c74mxLqzsvvd/2rU=; b=KhiiSUubpvf7ioEO10OhY6ENxWUuoeT7HUsvWqKa2D9U91rtuo4TO07NdGjUf8vski rrd35tW59l1xviibQoXaOIWq5i0im1Kz/1fo4P79gJSZL6fVJxJps4UCjCpSD8aEsQIR Sc48jwWvI7FvPeYQUIx8VemK2ilpKAd6wk2ihRL8vKLNsCS8VXjDyg162peO+lf2YOVa Lkf9ToaTPug6DSTaWruxfSr1jI1ln5Q15WiRYWuu7tWEHm+e4juxi9fXjTVhyT2jC6fT XxfE2kOWcYNp74v9yfz0tXyFGME1C+ZBPZfrXJgvd3jcf+tfjokeIQykBMvty4zmkw0S JJqg== X-Gm-Message-State: AOPr4FWS5cjLJnWvvvDlf/S3BwVa+1YsFZSZajsjhzsr7wp10jL8JVmomrAL5deooigqrhcAyTBw8QR86Q4VTA== MIME-Version: 1.0 X-Received: by 10.107.132.78 with SMTP id g75mr18840294iod.50.1460662389229; Thu, 14 Apr 2016 12:33:09 -0700 (PDT) Received: by 10.107.18.216 with HTTP; Thu, 14 Apr 2016 12:33:09 -0700 (PDT) In-Reply-To: References: <570FEAA1.5030903@elyograg.org> Date: Thu, 14 Apr 2016 12:33:09 -0700 Message-ID: Subject: Re: Growing memory? From: Erick Erickson To: solr-user Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In a word, "no", there are simply too many variables. It's like asking "how much memory will a Java program need?".... But Solr does like memory, both the Java heap and the OS memory. Here's a long blog on how to scope this out: https://lucidworks.com/blog/2012/07/23/sizing-hardware-in-the-abstract-why-= we-dont-have-a-definitive-answer/ Best, Erick On Thu, Apr 14, 2016 at 12:25 PM, Betsey Benagh wrote: > bin/solr status shows the memory usage increasing, as does the admin ui. > > I=C2=B9m running this on a shared machine that is supporting several othe= r > applications, so I can=C2=B9t be particularly greedy with memory usage. = Is > there anything out there that gives guidelines on what an appropriate > amount of heap is based on number of documents or whatever? We=C2=B9re j= ust > playing around with it right now, but it sounds like we may need a > different machine in order to load in all of the data we want to have > available. > > Thanks, > betsey > > On 4/14/16, 3:08 PM, "Shawn Heisey" wrote: > >>On 4/14/2016 12:45 PM, Betsey Benagh wrote: >>> I'm running solr 6.0.0 in server mode. I have one core. I loaded about >>>2000 documents in, and it was using about 54 MB of memory. No problem. >>>Nobody was issuing queries or doing anything else, but over the course >>>of about 4 hours, the memory usage had tripled to 152 MB. I shut solr >>>down and restarted it, and saw the memory usage back at 54 MB. Again, >>>with no queries or anything being executed against the core, the memory >>>usage is creeping up - after 17 minutes, it was up to 60 MB. I've looked >>>at the documentation for how to limit memory usage, but I want to >>>understand why it's creeping up when nothing is happening, lest it run >>>out of memory when I limit the usage. The machine is running CentOS 6.6, >>>if that matters, with Java 1.8.0_65. >> >>When you start Solr 5.0 or later directly from the download or directly >>after installing it with the service installer script (on *NIX >>platforms), Solr starts with a 512MB Java heap. You can change this if >>you need to -- most Solr users do need to increase the heap size to a >>few gigabytes. >> >>Java uses a garbage collection memory model. It's perfectly normal >>during the operation of a Java program, even one that is not doing >>anything you can see, for the memory utilization to rise up to the >>configured heap size. This is simply how things work in systems using a >>garbage collection memory model. >> >>Where exactly are you looking to find the memory utilization? In the >>admin UI, that number will go up over time, until one of the memory >>pools gets full and Java does a garbage collection, and then it will >>likely go down again. From the operating system point of view, the >>resident memory usage will increase up to a point (when the entire heap >>has been allocated) and probably never go back down -- but it also >>shouldn't go up either. >> >>Thanks, >>Shawn >> >