當我嘗試過啓動我的Ubuntu的elasticsearch啓動腳本給我下面的錯誤:Elasticsearch內存問題
Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x74800000, 201326592, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 201326592 bytes for committing reserved memory.
我已經嘗試通過這個搜索,我無法找到解決方案這個。如果我重新啓動機器,一切運行良好一天,然後彈性搜索出現並出現此錯誤。
我已經設置該屬性bootstrap.mlockall:真正在elasticsearch.yml的文件,並在默認elasticsearch文件的屬性:
ES_HEAP_SIZE=512 (I have 1GB of RAM)
MAX_LOCKED_MEMORY=unlimited
有人知道我需要做什麼?
感謝
感覺像你操作系統有serieus內存問題,你可以檢查os日誌?也許更多的信息是基於其他過程發生的。另外檢查與mlockall相關的選項:http://www.elastic.co/guide/en/elasticsearch/reference/1.4/setup-configuration.html。你確定你只在服務器上運行一個elasticsearch節點嗎?沒有其他東西在同一個盒子上運行? – 2015-04-05 15:52:28