我用Alpine-3.7创建了一个vm,我正在尝试使用elasticsearch启动一个容器。 VM内存情况是:
alpine:~/elastic$ free -m
total used free shared buffers cached
Mem: 7483 242 7241 0 34 128
-/+ buffers/cache: 79 7404
Swap: 4095 0 4095
当我尝试运行elasticsearch时,我得到了这个错误:
elasticsearch | OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000637299000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
elasticsearch | OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007337ad000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
elasticsearch | #
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 | #
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 | # Possible reasons:
elasticsearch | # The system is out of physical RAM or swap space
elasticsearch | # In 32 bit mode, the process size limit was hit
elasticsearch | # Possible solutions:
elasticsearch | # Reduce memory load on the system
elasticsearch | # Increase physical memory or swap space
elasticsearch | # Check if swap backing store is full
elasticsearch | # Use 64 bit Java on a 64 bit OS
elasticsearch | # Decrease Java heap size (-Xmx/-Xms)
elasticsearch | # Decrease number of Java threads
elasticsearch | # Decrease Java thread stack sizes (-Xss)
elasticsearch | # Set larger code cache with -XX:ReservedCodeCacheSize=
elasticsearch | # This output file may be truncated or incomplete.
elasticsearch | #
elasticsearch | # Out of Memory Error (os_linux.cpp:2651), pid=29, tid=0x00007337c59ab700
我没有'复制所有错误。 有谁可以帮助我?