Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232

在啓動elasticsearch時報如下錯誤,而之前啓動的時候是成功的。

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 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 2060255232 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/elasticsearch-7.5.1/bin/xxxxxxxx.log

解決方法:在elasticsearch安裝包下的config/jvm.options中,修改配置調整Heap size:

-Xms200m
-Xmx200m

然後重啓elsaticsearch即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章