-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完美地工作
最佳答案
转到config文件夹并打开elasticsearch.yml
文件,然后执行以下更改。
取消注释cluster.name
中的node.name
和elasticsearch.yml
,如下所示
cluster.name: ESCluster
node.name: ESNode
在jvm.options中更改堆大小
-Xms1g
-Xmx1g
转到
bin
文件夹,然后运行elasticsearch.bat
关于elasticsearch - Elasticsearch-5.0.0和5.0.1无法启动服务,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40644154/