elasticsearch 启动报错(2)

运行环境 | centos 7.0 | elasticsearch 6.5.4 | VMware Workstation Pro

初次启动elasticsearch报错

  • [2019-04-11T17:32:11,932][INFO ][o.e.e.NodeEnvironment ] [uITtGcF] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [41.5gb], net total_space [49.9gb], types [rootfs]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[doit@master ~]$ /opt/elasticsearch-6.5.4/bin/elasticsearch
[2019-04-11T17:32:11,932][INFO ][o.e.e.NodeEnvironment ] [uITtGcF] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [41.5gb], net total_space [49.9gb], types [rootfs]
[2019-04-11T17:32:11,990][INFO ][o.e.e.NodeEnvironment ] [uITtGcF] heap size [1015.6mb], compressed ordinary object pointers [true]
[2019-04-11T17:32:11,993][INFO ][o.e.n.Node ] [uITtGcF] node name derived from node ID [uITtGcFxRLSFwkuE1FUtwg]; set [node.name] to override
[2019-04-11T17:32:11,994][INFO ][o.e.n.Node ] [uITtGcF] version[6.5.4], pid[2833], build[default/tar/d2ef93d/2018-12-17T21:17:40.758843Z], OS[Linux/3.10.0-514.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2019-04-11T17:32:11,994][INFO ][o.e.n.Node ] [uITtGcF] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.nQEcpVMV, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/opt/elasticsearch-6.5.4, -Des.path.conf=/opt/elasticsearch-6.5.4/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2019-04-11T17:32:29,133][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [aggs-matrix-stats]
[2019-04-11T17:32:29,133][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [analysis-common]
[2019-04-11T17:32:29,134][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [ingest-common]
[2019-04-11T17:32:29,134][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [lang-expression]
[2019-04-11T17:32:29,134][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [lang-mustache]
[2019-04-11T17:32:29,134][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [lang-painless]
[2019-04-11T17:32:29,134][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [mapper-extras]
[2019-04-11T17:32:29,135][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [parent-join]
[2019-04-11T17:32:29,135][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [percolator]
[2019-04-11T17:32:29,135][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [rank-eval]
[2019-04-11T17:32:29,135][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [reindex]
[2019-04-11T17:32:29,135][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [repository-url]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [transport-netty4]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [tribe]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-ccr]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-core]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-deprecation]
[2019-04-11T17:32:29,136][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-graph]
[2019-04-11T17:32:29,137][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-logstash]
[2019-04-11T17:32:29,137][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-ml]
[2019-04-11T17:32:29,137][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-monitoring]
[2019-04-11T17:32:29,137][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-rollup]
[2019-04-11T17:32:29,137][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-security]
[2019-04-11T17:32:29,138][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-sql]
[2019-04-11T17:32:29,138][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-upgrade]
[2019-04-11T17:32:29,138][INFO ][o.e.p.PluginsService ] [uITtGcF] loaded module [x-pack-watcher]
[2019-04-11T17:32:29,138][INFO ][o.e.p.PluginsService ] [uITtGcF] no plugins loaded
[2019-04-11T17:32:56,126][INFO ][o.e.x.s.a.s.FileRolesStore] [uITtGcF] parsed [0] roles from file [/opt/elasticsearch-6.5.4/config/roles.yml]
[2019-04-11T17:33:00,018][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [uITtGcF] [controller/2892] [Main.cc@109] controller (64 bit): Version 6.5.4 (Build b616085ef32393) Copyright (c) 2018 Elasticsearch BV
[2019-04-11T17:33:03,297][DEBUG][o.e.a.ActionModule ] [uITtGcF] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-04-11T17:33:05,848][INFO ][o.e.d.DiscoveryModule ] [uITtGcF] using discovery type [zen] and host providers [settings]
[2019-04-11T17:33:09,911][INFO ][o.e.n.Node ] [uITtGcF] initialized
[2019-04-11T17:33:09,912][INFO ][o.e.n.Node ] [uITtGcF] starting ...
[2019-04-11T17:33:11,314][INFO ][o.e.t.TransportService ] [uITtGcF] publish_address {192.168.83.128:9300}, bound_addresses {192.168.83.128:9300}
[2019-04-11T17:33:11,462][INFO ][o.e.b.BootstrapChecks ] [uITtGcF] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max number of threads [3782] for user [doit] is too low, increase to at least [4096]
[2019-04-11T17:33:11,505][INFO ][o.e.n.Node ] [uITtGcF] stopping ...
[2019-04-11T17:33:11,891][INFO ][o.e.n.Node ] [uITtGcF] stopped
[2019-04-11T17:33:11,891][INFO ][o.e.n.Node ] [uITtGcF] closing ...
[2019-04-11T17:33:11,957][INFO ][o.e.n.Node ] [uITtGcF] closed
[2019-04-11T17:33:11,985][INFO ][o.e.x.m.j.p.NativeController] [uITtGcF] Native controller process has stopped - no new native processes can be started

问题原因 & 解决方法

  • 内存不足,加大内存,报错前内存是1G,修改为2G问题解决
本文结束感谢您的阅读,本文原创–支持原创
有问题请联系我--strivedeer@163.com