Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f82e6000000, 33554432, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 33554432 bytes for committing reserved memory. # An error report file with more information is saved as: # /root/elasticsearch-5.5.3/hs_err_pid3028.log
2017-11-13
重點看error信息:Cannot allocate memory,這是你的內(nèi)存不夠?qū)е碌?,默認是2G,如果機器內(nèi)存較小的話,可以調(diào)整config/jvm.options里的JVM內(nèi)存參數(shù),比如可以設(shè)定512MB,-Xmx512mb -Xms512mb 具體可以根據(jù)自己的機器調(diào)整
2019-03-26
elasticsearch6.6.2的config/jvm.options配置如果寫成-Xms512mb;-Xmx512mb
這樣會報錯
如果寫成-Xms512m;-Xmx512m單位沒有b的話就正常啟動了
2017-11-11
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f82e6000000, 33554432, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 33554432 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /root/elasticsearch-5.5.3/hs_err_pid3028.log