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
- when tag object too many, performance very lowObjectORM
- 關於memory_max_target,memory_target,sga_max_size,sga_target
- 測試memory_max_target
- Elasticsearch Java Low Level REST Client(初始化)ElasticsearchJavaRESTclient
- 11g的MEMORY_TARGET和MEMORY_MAX_TARGET
- 11g 中MEMORY_MAX_TARGET??
- Elasticsearch Java Low Level REST Client(執行請求)ElasticsearchJavaRESTclient
- ORA-00838: Specified value of MEMORY_TARGET is too small
- Shared SQL Areas和Private SQL AreasSQL
- Shared SQL Areas and Private SQL Areas (87)SQL
- 修改Memory_max_target為0出錯
- MySQL:Specified key was too long; max key length is 767 bytesMySql
- mysql的max_connections和Too many connectionsMySql
- ubuntu 安裝 ElasticSearchUbuntuElasticsearch
- ORA-00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET
- memory_max_target,memory_target,pga_aggregate_target,sga_target
- influxdb報錯:cache-max-memory-size exceededUX
- 轉載 11g 中MEMORY_MAX_TARGET
- Specified key was too long; max key length is 1000 bytes
- ES叢集搭建問題:memory locking requested for elasticsearch process but memory is not lockedElasticsearch
- database size increaseDatabase
- Increase Subarray Sums
- HP-UX top 輸出中實存(real memory)/虛存(virtual memory)資料解釋UX
- Ubuntu 解決 Too many open files 問題Ubuntu
- virtual box中ubuntu ssh 登入設定Ubuntu
- Virtual Memory Consumption / Paging under AIX 7.1 (文件 ID 1666458.1AI
- memory_max_target/memory_target設定過大報ORA-00845錯誤
- MongDB 啟動警告 ”WARNING: soft rlimits too low.“問題解決一例MIT
- TECH: Unix Virtual Memory, Paging & Swapping explained (Doc ID 17094.1)APPAI
- Cursors and SQL Areas (99)SQL
- DtypeWarning: Columns () have mixed types. Specify dtype option on import or set low_memory=False.ImportFalse
- Java程式碼解決ElasticSearch的Result window is too large問題JavaElasticsearch
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- Incorrect MEMORY_MAX_TARGET (> Available RAM) Can Lead To Database HangsAIDatabase
- Shared SQL Areas (88)SQL
- Overview of the Program Global Areas (97)View
- Software Code Areas (105)