Closed
Description
Elasticsearch version: 5.1.1
Plugins installed: [x-pack]
JVM version:
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)
OS version:
RHEL 7.2
Description of the problem including expected versus actual behavior:
Followed steps Install Elasticsearch with .zip or .tar.gz
Steps to reproduce:
- Install OpenJDK [java-1.8.0-openjdk]
- Unarchived elasticsearch binary to install location
- Change install location ownership to unique user and group [elkusr:elkgrp]
- Update /etc/security/limits.conf
- 'elkusr - nofile 65536'
- 'elkusr soft memlock unlimited'
- 'elkusr hard memlock unlimited'
- 'elkusr soft nproc 2048'
- 'elkusr hard nproc 2048'
- Update /etc/sysctl.conf and reload systemctl
- 'vm.max_map_count = 262144'
- 'vm.swappiness = 0'
- Installed x-pack plugin from binary
- elasticsearch/bin/elasticsearch-plugin install file:///tmp/x-pack-5.1.1.zip
- Update elasticsearch.yml configuration
- cluster.name: "elk_cluster"
- node.name: "test_vm_1"
- path.data: "/var/data/elasticsearch"
- path.logs: "/var/log/elasticsearch"
- bootstrap.memory_lock: true
- network.host: "10.100.0.5"
- discovery.zen.ping.unicast.hosts: ["test_vm_1", "test_vm_2"]
- discovery.zen.minimum_master_nodes: 2
- no change done to jvm.options or log4j.properties config.
- Create service for elasticsearch
- Start elasticsearch service
Provide logs (if relevant):
elasticsearch created no logs for this.
service elasticsearch status
Redirecting to /bin/systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/etc/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-01-11 13:51:09 NZDT; 1s ago
Docs: http://www.elastic.co
Process: 26496 ExecStart=/opt/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasticsearch.pid -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} (code=exited, status=64)
Main PID: 26496 (code=exited, status=64)
I even tried to execute elasticsearch directly, I got this warning and stopped:
/opt/elasticsearch/bin/elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
Any advise?
Activity
jasontedor commentedon Jan 11, 2017
This is a non-issue. It's from OpenJDK vendors applying a patch to enable
-XX:+AssumeMP
by default. You can disable it and remove this warning message by adding-XX:-AssumeMP
to jvm.options.This indicates a command-line usage error.
Looking at your command-line:
This is not the correct syntax. You need to use
-E
for these options, and drop thees.
prefixes.Also, why use an archive distribution to install, why not use the RPM which will setup the service for you?
If you need additional help, please open an issue on the forum. Elastic reserves GitHub for verified bug reports and feature requests.
Gaurav2Github commentedon Jan 11, 2017
Thanks for the advise.
I have corrected it now.
Free memory was low. Increasing it fixed the issue.
Using RPM is anytime better option to use.