From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 10 21:49:36 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DABE88FC for ; Wed, 10 Dec 2014 21:49:35 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5839973 for ; Wed, 10 Dec 2014 21:49:35 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBALnZxN070905 for ; Wed, 10 Dec 2014 21:49:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195861] New: [patch] textproc/elasticsearch set Min JVM heap size = Max JVM heap size Date: Wed, 10 Dec 2014 21:49:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dvl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tj@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 21:49:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195861 Bug ID: 195861 Summary: [patch] textproc/elasticsearch set Min JVM heap size = Max JVM heap size Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: tj@FreeBSD.org Reporter: dvl@FreeBSD.org Assignee: tj@FreeBSD.org Flags: maintainer-feedback?(tj@FreeBSD.org) Created attachment 150439 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150439&action=edit patch rc.d file In the past, it was standard to set min heap size < max heap size for a JVM.The current standard approach is to keep them the same. This avoids the cost of resizing the JVM heap. I encountered this issue today when the JVM started spouting repeated errors (see below). Conversations in the elasticsearch IRC channel brought the above recommendation. I implemented it in my /etc/rc.conf file and the problem did not occur upon restart. 2014-12-10 19:38:26,155][WARN ][index.translog ] [James Dr. Power] [logstash-2014.12.10][3] failed to flush shard on translog threshold org.elasticsearch.index.engine.FlushFailedEngineException: [logstash-2014.12.10][3] Flush failed at org.elasticsearch.index.engine.internal.InternalEngine.flush(InternalEngine.java:901) at org.elasticsearch.index.shard.service.InternalIndexShard.flush(InternalIndexShard.java:627) at org.elasticsearch.index.translog.TranslogService$TranslogBasedFlush$1.run(TranslogService.java:201) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:698) at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:712) at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3063) at org.elasticsearch.index.engine.internal.InternalEngine.flush(InternalEngine.java:891) ... 5 more Caused by: java.lang.OutOfMemoryError: Java heap space --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer tj@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.