我试图按照正常的安装指南启动和运行ElasticSearch 。
Macbook上的一切运行正常,但是我试图在Ubuntu 11.04服务器上做同样的事情。
运行/usr/local/elasticsearch/bin/elasticsearch -f正常,我得到了回应curl http://localhost:9200。
/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.
果然rcelasticsearch status说不了ElasticSearch is not running本地主机:9200。
rcelasticsearch status
ElasticSearch is not running
任何想法可能是什么问题?
编辑:服务日志显示:
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
/usr/local/elasticsearch/bin/service/elasticsearch.conf
ES_HEAP_SIZE