From solr-user-return-143800-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Mon Sep 17 18:20:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 44C2D180627 for ; Mon, 17 Sep 2018 18:20:07 +0200 (CEST) Received: (qmail 7854 invoked by uid 500); 17 Sep 2018 16:20:05 -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 7347 invoked by uid 99); 17 Sep 2018 16:20:04 -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; Mon, 17 Sep 2018 16:20:04 +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 DD368180943 for ; Mon, 17 Sep 2018 16:20:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.398 X-Spam-Level: X-Spam-Status: No, score=0.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org 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 qonIkTO2IkOy for ; Mon, 17 Sep 2018 16:20:03 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.217]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E12195F10C for ; Mon, 17 Sep 2018 16:20:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 889B48F3 for ; Mon, 17 Sep 2018 10:20:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-language:content-transfer-encoding:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=mail; t=1537201201; bh=YQ3Oaf6ca0/8+gtDlMyh7IJoz0aS egoFxEn6QRZuyyw=; b=g5qZfc9BiPaddV4EAJIcmJ0qoleVor63YQKIuWyj79PR EF2Hzhe4y7RCJZ6fIqmpkCI3JlEbUaLku24lScWgAhzrFjwAgofNZBWgeWEsND89 bI9GOlQL8LTqLJfL3tpJKl5bt7UUUKM0acgvaDawbJXD4roRCoGcZRwUHukCjes= 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 qE5fmAR46O5X for ; Mon, 17 Sep 2018 10:20:01 -0600 (MDT) Received: from [192.168.1.124] (124.int.elyograg.org [192.168.1.124]) (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 292828C4 for ; Mon, 17 Sep 2018 10:20:01 -0600 (MDT) Subject: Re: OOM Solr 4.8.1 To: solr-user@lucene.apache.org References: From: Shawn Heisey Message-ID: <2b4550e9-65ad-373c-fa6c-756e37f2f69c@elyograg.org> Date: Mon, 17 Sep 2018 10:20:03 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 9/17/2018 9:52 AM, Vincenzo D'Amore wrote: > recently I had few Java OOM in my Solr 4.8.1 instance. > > Here the configuration I have. The only part of your commandline options that matters for OOM is the max heap. Which is 16GB for your server.  Note, you should set the min heap and max heap to the same value.  Java will eventually allocate the entire max heap it has been allowed ... better to do so right from the start. > This is the error: > > org.apache.solr.common.SolrException: Error while processing facet fields: > java.lang.OutOfMemoryError: Java heap space Your heap isn't big enough.  You have two choices.  Make the heap bigger, or change something so Solr doesn't need as much heap memory. https://wiki.apache.org/solr/SolrPerformanceProblems#Reducing_heap_requirements If you enable docValues for fields that you use for faceting, much less heap memory will be required to get facet results. Sometimes the only real way to change how much memory is required is to reduce the size of the index.  Put fewer documents into the index, probably by spreading the index across multiple servers (shards). Thanks, Shawn