4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ElasticsearchがOutOfMemoryで落ちた時のメモ

4
Posted at

バージョン

Elasticsearch 5.1.1

やったこと

ヒープサイズ512mbで起動したElasticsearchに、10万件くらいのindexクエリを2000件ずつ非同期でPOSTした。

OutOfMemoryで落ちる

スクリーンショット 2017-04-04 20.15.39.png

対処法

いろいろ調べたところ、ヒープサイズを増やすしかないらしい。
開発用のEC2(t2.micro)なので、アップグレードしたくないのでswaponすることにした。
公式ドキュメントにはスワップするなって書いてあるけど。。。
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html

swapした結果

体感ではあまりパフォーマンスは変わらない。
ベンチマークとって比較してみたい。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?