1

java_home

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 完美运行

4

2 回答 2

0

将 -Xss1m 添加到 config 文件夹中的文件 jvm.options

于 2016-12-08T15:07:28.967 回答
0

转到配置文件夹并打开elasticsearch.yml文件,然后进行以下更改。

取消注释cluster.namenode.name如下elasticsearch.yml

cluster.name: ESCluster

node.name: ESNode

在 jvm.options 中更改堆大小

-Xms1g
-Xmx1g

转到bin文件夹然后运行elasticsearch.bat 服务器启动

于 2016-12-14T10:40:57.643 回答