2012-05-30 11 views
12

ElasticSearchを入手して、通常のsetup guideに従って実行しようとしています。UbuntuでElasticSearchをサービスとして実行できません

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. 
rcelasticsearch status案の定

ElasticSearch is not runningと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 
+1

elasticsearchユーザーはelasticsearchインストールのデータおよびログディレクトリへの書き込み権限を持っていますか?ログファイルには何かがありますか? – imotov

答えて

44

サーバインスタンスは、デフォルトのElasticSearchサービスラッパーの設定のための十分なメモリを持っていませんでした。これを修正するには/usr/local/elasticsearch/bin/service/elasticsearch.confを編集し、ES_HEAP_SIZEを1024から512に変更しました

+6

ありがとう、私の設定は/usr/local/share/elasticsearch/bin/service/elasticsearch.confにあります。 –

+1

私のために働いてくれました。素晴らしい+1 – GruffTech

+0

+1悪霊のセラーリーに感謝します! – tester

関連する問題