Closed yafngzh closed 7 years ago
Can you try doing this before you start elastc-stack -
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf
sudo sysctl -w vm.max_map_count=262144
This was already set.
Can you try:
$ sudo docker run -d --name elstack -p 80:80 -p 9200:9200 blacktop/elastic-stack:5.1
$ sudo docker exec elstack head -n30 /var/log/elasticsearch.stdout.log
yafngzh@ubuntu:~$ docker exec elstack_A head -n30 /var/log/elasticsearch.stdout.log
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1798569984 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid24.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1798569984 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid59.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1798569984 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid91.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1798569984 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid154.log
The reason seems to be not sufficient memory. And it works well after I resize the memory of the VM. Thanks!
env: ubuntu 16.04 with vmware
the command was this sudo docker run -p 80:80 -p 9200:9200 blacktop/elastic-stack:5.1
the result was:
and the kibana ui turned out:
Could you help me to find out the cause?