網站首頁 編程語言 正文
Elasticsearch啟動報錯解決方法
1、機器內剩余內存較少,會啟動失敗,并且有類似如下報錯:
Java HotSpot(TM) 64-Bit Server VM warning:INFO: os::commit_memory(0x000000008a660000, 1973026816, 0) failed; error='Cannot allocate memory' (errno=12)
這是因為es的jvm參數-Xmx和-Xms默認都為2G
修改config下的jvm.option文件
# vi elasticsearch/elasticsearch-6.1.0/config/jvm.opstions
將
-Xms2g
-Xmx2g
改為
-Xms1g
-Xmx1g
或更小
-Xms512M
-Xmx512M
再次啟動即可
2、啟動的時候出現:
1、ERROR: bootstrap checks failed system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk...
解決方法:在elasticsearch.yml中配置bootstrap.system_call_filter為false,注意要在Memory下面:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
3、ERROR: bootstrap checks failed max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]
解決方法:切換到root用戶,編輯limits.conf 添加類似如下內容
#vi /etc/security/limits.conf
添加如下內容:
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
4、max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
解決方法:切換到root用戶,進入limits.d目錄下修改配置文件。
#vi /etc/security/limits.d/90-nproc.conf
修改如下內容:
* soft nproc 1024
修改為
* soft nproc 2048
5、max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解決方法:切換到root用戶修改配置sysctl.conf
#vi /etc/sysctl.conf
添加下面配置:
vm.max_map_count=655360
并執行命令:
#sysctl -p
然后,再啟動elasticsearch,即可啟動成功。
報錯[seci-*****] creating index,cause[api],templates[],shards[5]/[1],mappings[]
[seci-*****/********]create_create_mapping
解決方法:
#vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
這個文件的最后兩行,把上面這個配置覆蓋了。刪掉最后兩行即可
正確文件:
若有收獲,就點個贊吧
原文鏈接:https://blog.csdn.net/g5703129/article/details/124816435
相關推薦
- 2022-07-14 python輸出小數精度控制的方法_python
- 2022-05-26 pandas進行數據輸入和輸出的方法詳解_python
- 2022-07-14 Oracle中nvl()和nvl2()函數實例詳解_oracle
- 2022-06-07 FreeRTOS操作系統的配置示例解析_操作系統
- 2022-07-07 Django加載配置的過程詳解_python
- 2021-10-17 linux配置主機名詳細介紹_Linux
- 2022-04-01 CentOS安裝Docker的方法_docker
- 2022-01-18 npm ERR! code ENOENT npm ERR! syscall open npm ERR
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支