Can't start elasticsearch service

Hi all,
i work on ubuntu VM ,and i cant start service ES;;i followed all the steps for installation
Synchronizing state of elasticsearch.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable elasticsearch
root@orange-VirtualBox:/home/ELK# sudo /bin/systemctl start elasticsearch.service
root@orange-VirtualBox:/home/ELK# service elasticsearch status
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since ven. 2018-04-06 15:20:36 CEST; 5s ago
Docs: http://www.elastic.co
Process: 2210 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elastics
Process: 2208 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (c
Main PID: 2210 (code=exited, status=1/FAILURE)

    avril 06 15:20:27 orange-VirtualBox systemd[1]: Started Elasticsearch.
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: Java HotSpot(TM) 64-Bit Server VM 
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: #
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: # There is insufficient memory for
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: # Native memory allocation (mmap) 
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: # An error report file with more i
    avril 06 15:20:31 orange-VirtualBox elasticsearch[2210]: # /tmp/hs_err_pid2210.log
    avril 06 15:20:36 orange-VirtualBox systemd[1]: elasticsearch.service: Main process exited,
    avril 06 15:20:36 orange-VirtualBox systemd[1]: elasticsearch.service: Unit entered failed 
    avril 06 15:20:36 orange-VirtualBox systemd[1]: elasticsearch.service: Failed with result '

Did you check /tmp/hs_err_pid2210.log? How much RAM does your VM have?

There is insufficient memory for Native memory allocation (mmap)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.