Cannot start elasticsearch in alpine
-
- Offline
- 3 weeks 2 days ago
- 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
Hello,
I just created an account to post the answer to your question.
Please enable PaX Softmode in sysctl.
kernel.pax.softmode=1
Bernhard
Hi,
it worked thanks a lot!
Must I sign post as resolved or in another way?
Thanks a lot again.