[trouble shooting]memory locking requested for elasticsearch process but memory is not locked# DataBase/Elasticsearch2021. 4. 7. 10:44
Table of Contents
728x90
반응형
엘라스틱서치 실행시 아래와 같이 오류발생확인
[2021-04-07T09:46:19,467][ERROR][o.e.b.Bootstrap] [darksharavim.com] node validation exception
[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: memory locking requested for elasticsearch process but memory is not locked
ulimit상태값
# ulimit -aS
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31118
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
# ulimit -aH
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31118
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
elasticsearch.yml설정값
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["localhost"]
728x90
메모리 상태
# free -g
total used free shared buff/cache available
Mem: 7 1 5 0 0 5
Swap: 5 0 5
아래와 같이 수정후 정상 구동
# vi /usr/lib/systemd/system/elasticsearch.service
아래 내용 추가
LimitMEMLOCK=infinity
# systemctl daemon-reload
# systemctl start elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: active (running) since 수 2021-04-07 11:00:31 KST; 2min 25s ago
Docs: https://www.elastic.co
Main PID: 4259 (java)
CGroup: /system.slice/elasticsearch.service
├─4259 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.network...
└─4451 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_6...
4월 07 10:59:53 mail.kajin7.com systemd[1]: Starting Elasticsearch...
4월 07 11:00:31 mail.kajin7.com systemd[1]: Started Elasticsearch.
참고 : discuss.elastic.co/t/not-able-to-start-elasticsearch-due-to-failed-memory-lock/158009
728x90
반응형
'# DataBase > Elasticsearch' 카테고리의 다른 글
apache error log logstash grok pattern (0) | 2021.04.14 |
---|---|
[trouble shooting]master_not_discovered_exception (0) | 2021.04.07 |
logstash debug test (0) | 2021.04.06 |
logstash - grok debugger를 이용해서 apache log 파싱 (0) | 2021.04.03 |
ELK filebeat 설치(RPM) (0) | 2021.04.02 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!