Banner

 

Configuration Guide

This HOWTO explains the configuration steps for ELMA and openSUSE distribution.

ELMA

logstash

ElasticSearch

grep "ES_HEAP_SIZE" /opt/elasticsearch/bin/service/elasticsearch.conf
set.default.ES_HEAP_SIZE=2048
wrapper.java.initmemory=%ES_HEAP_SIZE%
wrapper.java.maxmemory=%ES_HEAP_SIZE%

The most important setting for Java memory allocation is the -Xmx to control the maximum allowed memory for the process, and -Xms to control the minimum allocated memory for the process (in general, the more memory allocated to the process, the better).

-Xss256k
-Xms2048m
-Xmx2048m
ps -l --cols 20000 15456
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD
0 S  1000 15456 15454  1  80   0 - 877136 futex_ ?         0:35 /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin/java -Delasticsearch-service -Des.path.home=/opt/elasticsearch -Xss256k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true -Des.max-open-files=true -Xms2048m -Xmx2048m -Djava.library.path=/opt/elasticsearch/bin/service/lib -classpath /opt/elasticsearch/bin/service/lib/wrapper.jar:/opt/elasticsearch/lib/elasticsearch-0.19.12.jar:/opt/elasticsearch/lib/elasticsearch-0.19.12.jar:/opt/elasticsearch/lib/jna-3.3.0.jar:/opt/elasticsearch/lib/log4j-1.2.17.jar:/opt/elasticsearch/lib/lucene-analyzers-3.6.1.jar:/opt/elasticsearch/lib/lucene-core-3.6.1.jar:/opt/elasticsearch/lib/lucene-highlighter-3.6.1.jar:/opt/elasticsearch/lib/lucene-memory-3.6.1.jar:/opt/elasticsearch/lib/lucene-queries-3.6.1.jar:/opt/elasticsearch/lib/snappy-java-1.0.4.1.jar:/opt/elasticsearch/lib/sigar/sigar-1.6.4.jar -Dwrapper.key=g-MRKbW_xtz1rqsz -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.disable_console_input=TRUE -Dwrapper.pid=15454 -Dwrapper.version=3.5.14 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.elasticsearch.bootstrap.ElasticSearchF
grep "elasticsearch" /etc/security/limits.conf

elasticsearch soft nofile 64000
elasticsearch hard nofile 64000
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
STATUS | wrapper  | 2013/01/09 06:27:33 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2013/01/09 06:27:33 | Java Service Wrapper Community Edition 64-bit 3.5.14
STATUS | wrapper  | 2013/01/09 06:27:33 |   Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2013/01/09 06:27:33 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2013/01/09 06:27:33 |
STATUS | wrapper  | 2013/01/09 06:27:33 | Launching a JVM...
INFO   | jvm 1    | 2013/01/09 06:27:34 | WrapperManager: Initializing...
INFO   | jvm 1    | 2013/01/09 06:27:39 | [2013-01-09 06:27:39,994][INFO ][bootstrap                ] max_open_files [63977]
http://www.elasticsearch.org/guide/reference/mapping/core-types.html

Apache2

Create new htpasswd file: htpasswd2 -c /etc/apache2/conf.d/htpasswd admin

Append new user into existing htpasswd file: htpasswd2 /etc/apache2/conf.d/htpasswd admin