Elasticsearch-5.0.0 & 5.0.1 无法启动服务
Elasticsearch-5.0.0 & 5.0.1 not able to start the service
jvm.options :
-Xms20g
-Xmx20g
-Xss1m
日志:
[2016-11-16 13:18:20] [info] [ 7892] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-11-16 13:18:20] [info] [ 7892] Starting service 'ES' ...
[2016-11-16 13:18:20] [warn] [ 7892] Failed to obtain service description
[2016-11-16 13:18:21] [error] [ 7892] Failed to start 'ES' service
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.
[2016-11-16 13:18:21] [info] [ 7892] Start service finished.
[2016-11-16 13:18:21] [error] [ 7892] Commons Daemon procrun failed with exit value: 5 (Failed to start service)
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.
The data area passed to a system call is too small.
Failed to start service
但 elasticsearch.bat 完美运行
将 -Xss1m 添加到配置文件夹中的文件 jvm.options
转到配置文件夹并打开 elasticsearch.yml
文件,然后进行以下更改。
取消注释 elasticsearch.yml
中的 cluster.name
和 node.name
,如下所示
cluster.name: ESCluster
node.name: ESNode
在 jvm.options
中更改堆大小
-Xms1g
-Xmx1g
转到 bin
文件夹然后 运行 elasticsearch.bat
jvm.options :
-Xms20g
-Xmx20g
-Xss1m
日志:
[2016-11-16 13:18:20] [info] [ 7892] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-11-16 13:18:20] [info] [ 7892] Starting service 'ES' ...
[2016-11-16 13:18:20] [warn] [ 7892] Failed to obtain service description
[2016-11-16 13:18:21] [error] [ 7892] Failed to start 'ES' service
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.
[2016-11-16 13:18:21] [info] [ 7892] Start service finished.
[2016-11-16 13:18:21] [error] [ 7892] Commons Daemon procrun failed with exit value: 5 (Failed to start service)
[2016-11-16 13:18:21] [error] [ 7892] The data area passed to a system call is too small.
The data area passed to a system call is too small.
Failed to start service
但 elasticsearch.bat 完美运行
将 -Xss1m 添加到配置文件夹中的文件 jvm.options
转到配置文件夹并打开 elasticsearch.yml
文件,然后进行以下更改。
取消注释 elasticsearch.yml
中的 cluster.name
和 node.name
,如下所示
cluster.name: ESCluster
node.name: ESNode
在 jvm.options
中更改堆大小-Xms1g
-Xmx1g
转到 bin
文件夹然后 运行 elasticsearch.bat