Cannot start elasticsearch in alpine

3 posts / 0 new
Last post
#1 Sun, 2018-02-25 11:51
abdujaparov
  • abdujaparov's picture
  • Offline
  • Last seen: 3 weeks 2 days ago
  • Joined: 2018-02-24

Hi,
I create and alpine vm with virtual box on windows and I am trying to deploy docker with elasticsearch in alpine.
When I try to start container I receive:

elasticsearch | # There is insufficient memory for the Java Runtime Environment to continue.
elasticsearch | # Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
elasticsearch | # Can not save log file, dump to screen..
elasticsearch | # Out of Memory Error (os_linux.cpp:2651), pid=29, tid=0x00007337c59ab700

my memory situation is:
alpine:~/elastic$ free -m
total used free shared buffers cached
Mem: 7483 239 7244 0 34 128
-/+ buffers/cache: 75 7407
Swap: 4095 0 4095

What is the problem?
Java options used for container are:
"ES_JAVA_OPTS=-Xms512m -Xmx512m"

Thanks

Sun, 2018-02-25 18:20
bgruen
  • bgruen's picture
  • Offline
  • Last seen: 1 month 2 days ago
  • Joined: 2018-02-25

Hello,

I just created an account to post the answer to your question.
Please enable PaX Softmode in sysctl.
kernel.pax.softmode=1

Bernhard

Tue, 2018-02-27 08:12
abdujaparov
  • abdujaparov's picture
  • Offline
  • Last seen: 3 weeks 2 days ago
  • Joined: 2018-02-24

Hi,
it worked thanks a lot!
Must I sign post as resolved or in another way?
Thanks a lot again.

Log in or register to post comments