AWSへElasticsearchを導入し、起動しようとするとメモリ不足でエラーになります。
SWAP領域は確保しているのですが、単純にSWAP領域への割当メモリがまだ足りないのか
エラーになります。サーバー回りはあまり存じ上げないため、Elasticsearchを起動するためのヒントをご教授いただければと存じます。
環境
AWS LINUX t2.micro
Rails4
elasticsearch5.1.1
エラー内容
Starting elasticsearch: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory. # An error report file with more information is saved as: # /tmp/hs_err_pid27632.log [FAILED]
SWAP領域
free -m total used free shared buffers cached Mem: 987 776 211 0 51 240 -/+ buffers/cache: 484 503 Swap: 511 0 511
cat /etc/fstab # LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /tmp/swap.img swap swap defaults 0 0 /swapfile1 none swap sw 0 0
Elasticsearch JVMのピープ領域
jvm.options
# Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space -Xms256M -Xmx256M
※JVMのピープ領域は2Gから256Mへ削減しました。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/14 10:36