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 490759FB5 for ; Tue, 16 Dec 2014 17:09:01 +0000 (UTC) Received: (qmail 58586 invoked by uid 500); 16 Dec 2014 17:08:53 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 58515 invoked by uid 500); 16 Dec 2014 17:08:52 -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 58499 invoked by uid 99); 16 Dec 2014 17:08:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 17:08:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache@elyograg.org designates 166.70.79.219 as permitted sender) Received: from [166.70.79.219] (HELO frodo.elyograg.org) (166.70.79.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 17:08:47 +0000 Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 616C6A86C for ; Tue, 16 Dec 2014 10:08:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1418749703; bh=QVY/XtTl+CiizQ1kHl8qby5Ii9+qe5OA8mcq6BXAQjc=; b=Hv11HqmKKKfl tHHIdECOTXE29G0YcJ/74JYip2EGJ46GLkUmmX7jwD28gu3kusDGFsNZWywttA/7 6z63qyV6dXicAEfFRWhcKFZXHYx2tmSMydo4zAArHn3ovBnOJpllR2Z0sXd4gmxg 9HffuU6xn3T6T/rrxPMIzUsHxyqZWnQ= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uR1truSlru2d for ; Tue, 16 Dec 2014 10:08:23 -0700 (MST) Received: from [10.7.5.98] (client175.mainstreamdata.com [209.63.42.175]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id 5A8C9A86A for ; Tue, 16 Dec 2014 10:08:22 -0700 (MST) Message-ID: <54906703.8040206@elyograg.org> Date: Tue, 16 Dec 2014 10:08:19 -0700 From: Shawn Heisey User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: OutOfMemoryError References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/16/2014 9:55 AM, Trilok Prithvi wrote: > We are getting OOME pretty often (every hour or so). We are restarting > nodes to keep up with it. > > Here is our setup: > SolrCloud 4.10.2 (2 shards, 2 replicas) with 3 zookeepers. > > Each node has: > 16GB RAM > 2GB JVM (Xmx 2048, Xms 1024) > ~100 Million documents (split among 2 shards - ~50M on each shard) > Solr Core is about ~16GB of data on each node. > > *Physical Memory is almost always 99% full.* I'm pretty sure that a 2GB heap will simply not be big enough for 100 million documents. The fact that you can get it to function for even an hour is pretty amazing. If you can upgrade the memory beyond 16GB, you should ... and you'll need to increase your Java heap. I would use 4GB as a starting point. http://wiki.apache.org/solr/SolrPerformanceProblems#How_much_heap_space_do_I_need.3F It's completely normal for physical memory to be full. The OS uses available memory for disk caching. http://en.wikipedia.org/wiki/Page_cache Thanks, Shawn