OpenJDK 64-Bit Server VM warning ElasticSearch FAILED TO START


(Richard Phillips Roy) #1

I'm a newbie , i'm running DEBAIN on virtual box , and i'm getting this error please help.

● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-11-29 00:09:49 IST; 11s ago
Docs: http://www.elastic.co
Process: 10967 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p {PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs={LOG_DIR} -Edefault.path.data={DATA_DIR} -Edefault.path.conf={CONF_DIR} (code=
Process: 10964 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 10967 (code=exited, status=1/FAILURE)

Nov 29 00:09:48 roy systemd[1]: Starting Elasticsearch...
Nov 29 00:09:48 roy systemd[1]: Started Elasticsearch.
Nov 29 00:09:49 roy elasticsearch[10967]: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000008a660000, 1973026816, 0) failed; error='Cannot allocate memory' (errno=12)
Nov 29 00:09:49 roy systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 00:09:49 roy systemd[1]: elasticsearch.service: Unit entered failed state.
Nov 29 00:09:49 roy systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
~


(Mark Walkom) #2

Is there anything in your Elasticsearch logs?
Usually that's in /var/log/elasticsearch/