我试图让ElasticSearch在正常的
setup guide之后运行.
一切都在Macbook上运行正常,但我也试图在Ubuntu 11.04服务器上执行相同操作.
运行/usr/local / elasticsearch / bin / elasticsearch -f工作,并从curl http:// localhost:9200获取响应.
但是,当我尝试启动ElasticSearch作为服务(我已经安装了服务包装器)时,这是我所得到的:
$rcelasticsearch start Starting ElasticSearch... Waiting for ElasticSearch............................. WARNING: ElasticSearch may have Failed to start.
当然可以这样说,ElasticSearch没有运行,localhost:9200无法访问.
任何想法可能是什么问题?
编辑:
服务日志说:
Launching a JVM... JVM exited while loading the application. Error occurred during initialization of VM Could not reserve enough space for object heap
服务器实例没有足够的内存用于默认的ElasticSearch服务包装器设置.要修复此问题,我编辑了/usr/local/elasticsearch/bin/service/elasticsearch.conf并将ES_HEAP_SIZE从1024更改为512