Ubuntu elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at le
具體錯誤資訊如下:
jiankunking@ubuntu:~/software/elasticsearch$ ./bin/elasticsearch
[2017-03-23T18:14:05,880][INFO ][o.e.n.Node ] [] initializing ...
[2017-03-23T18:14:06,151][INFO ][o.e.e.NodeEnvironment ] [r5Eus3r] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [11.1gb], net total_space [17.5gb], spins? [possibly], types [ext4]
[2017-03-23T18:14:06,152][INFO ][o.e.e.NodeEnvironment ] [r5Eus3r] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-03-23T18:14:06,154][INFO ][o.e.n.Node ] [r5Eus3r] node name [r5Eus3r] derived from node ID; set [node.name] to override
[2017-03-23T18:14:06,171][INFO ][o.e.n.Node ] [r5Eus3r] version[5.0.1], pid[3669], build[080bb47/2016-11-11T22:08:49.812Z], OS[Linux/4.8.0-41-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_121/25.121-b13]
[2017-03-23T18:14:08,104][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [aggs-matrix-stats]
[2017-03-23T18:14:08,110][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [ingest-common]
[2017-03-23T18:14:08,110][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [lang-expression]
[2017-03-23T18:14:08,111][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [lang-groovy]
[2017-03-23T18:14:08,111][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [lang-mustache]
[2017-03-23T18:14:08,111][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [lang-painless]
[2017-03-23T18:14:08,111][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [percolator]
[2017-03-23T18:14:08,111][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [reindex]
[2017-03-23T18:14:08,112][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [transport-netty3]
[2017-03-23T18:14:08,112][INFO ][o.e.p.PluginsService ] [r5Eus3r] loaded module [transport-netty4]
[2017-03-23T18:14:08,113][INFO ][o.e.p.PluginsService ] [r5Eus3r] no plugins loaded
[2017-03-23T18:14:12,904][INFO ][o.e.n.Node ] [r5Eus3r] initialized
[2017-03-23T18:14:12,905][INFO ][o.e.n.Node ] [r5Eus3r] starting ...
[2017-03-23T18:14:13,161][INFO ][o.e.t.TransportService ] [r5Eus3r] publish_address {127.0.0.1:9300}, bound_addresses {[::]:9300}
[2017-03-23T18:14:13,165][INFO ][o.e.b.BootstrapCheck ] [r5Eus3r] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2017-03-23T18:14:13,199][INFO ][o.e.n.Node ] [r5Eus3r] stopping ...
[2017-03-23T18:14:13,250][INFO ][o.e.n.Node ] [r5Eus3r] stopped
[2017-03-23T18:14:13,250][INFO ][o.e.n.Node ] [r5Eus3r] closing ...
[2017-03-23T18:14:13,274][INFO ][o.e.n.Node ] [r5Eus3r] closed
解決辦法:
1、切換到root使用者修改配置sysctl.conf
vi /etc/sysctl.conf
新增下面配置:
vm.max_map_count=655360
並執行命令:
sysctl -p
然後,重新啟動elasticsearch,即可啟動成功。
作者:jiankunking 出處:http://blog.csdn.net/jiankunking
相關文章
- Docker安裝 elasticsearch 報錯max virtual memory areas vm.max_map_count [65530] is too lowDockerElasticsearch
- Specified key was too long; max key length is 1000 bytes
- ORA-00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET
- Elasticsearch Java Low Level REST Client(初始化)ElasticsearchJavaRESTclient
- influxdb報錯:cache-max-memory-size exceededUX
- Increase Subarray Sums
- Elasticsearch Java Low Level REST Client(執行請求)ElasticsearchJavaRESTclient
- ES叢集搭建問題:memory locking requested for elasticsearch process but memory is not lockedElasticsearch
- Incorrect MEMORY_MAX_TARGET (> Available RAM) Can Lead To Database HangsAIDatabase
- virtual box中ubuntu ssh 登入設定Ubuntu
- ubuntu 安裝 ElasticSearchUbuntuElasticsearch
- Ubuntu 解決 Too many open files 問題Ubuntu
- 偶遇ERROR 1071 (42000): Specified key was too long; max key length is 767 bytesError
- DtypeWarning: Columns () have mixed types. Specify dtype option on import or set low_memory=False.ImportFalse
- It is worth mentioning it is also one of the main areasAI
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- 【ASK_ORACLE】資料泵由於”Streams AQ: Enqueue Blocked On Low Memory" 問題變慢OracleENQBloC
- Java程式碼解決ElasticSearch的Result window is too large問題JavaElasticsearch
- Low-Code,一定“low”嗎?
- 教程:在Ubuntu 18.04.1上安裝ElasticsearchUbuntuElasticsearch
- ORA-00843,ORA-00849 When Trying To Change SGA_TARGET With MEMORY_MAX_TARGET=0
- Is low code the future of development? Talking about low-code platformsdevPlatform
- [Mark]解決ElasticSearch深度分頁機制中Result window is too large問題Elasticsearch
- tarjan演算法 更新方式;探討low[u]=min(low[u],low[v]);和low[u]=min(low[u],dfn[v]) 寫得都對 https://www.acwing.com/blog/content/6015/演算法HTTP
- How to Increase CSS Misscount in single instance ASM installations [ID 729878.1]CSSASM
- Mysql索引(一篇就夠le)MySql索引
- Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdkProject
- memory
- Bluetooth Low Energy 嗅探
- Netherland is low-context communicatorsContext
- BMZCTF:memory
- data too long for column
- ZOJ4043 : Virtual Singers
- 利用Virtual Dom的作用
- 何為Virtual DOM(VDOM)
- Virtual-DOM的理解
- virtual DOM快在哪裡?
- Azure Virtual Machine (Azure for Students)Mac
- [Memory Leak] 1. console.log cause memory leak