I'm trying to get ElasticSearch up and running following the normal setup guide.
Everything is running fine on my Macbook but I'm trying to do the same on an Ubuntu 11.04 server.
Running /usr/local/elasticsearch/bin/elasticsearch -f
works and I get a response from curl http://localhost:9200
.
However this is what I get when I try to start ElasticSearch as a service (I've installed the service wrapper):
$ rcelasticsearch start
Starting ElasticSearch...
Waiting for ElasticSearch.............................
WARNING: ElasticSearch may have failed to start.
Sure enough rcelasticsearch status
says ElasticSearch is not running
and localhost:9200 cannot be reached.
Any ideas what might be the problem?
Edit: The service log says:
Launching a JVM...
JVM exited while loading the application.
Error occurred during initialization of VM
Could not reserve enough space for object heap
To perform a more thorough check of Elasticsearch execute the following command: curl -XGET 'http://localhost:9200/_nodes?pretty' In the output from the above command you can see and verify all the current settings for the node, cluster, application paths, modules, etc.
1)Run the cd /usr/lib/netbrain/installer/elasticsearch command to navigate to the elasticsearch directory. 2)Run the ./uninstall.sh command under the elasticsearch directory. 3)Specify whether to remove all Elasticsearch data. To remove data, type y or yes, otherwise, type n or no.
The server instance didn't have enough memory for the default ElasticSearch service wrapper settings. To fix this I edited /usr/local/elasticsearch/bin/service/elasticsearch.conf
and changed ES_HEAP_SIZE
from 1024 to 512
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With