![[elasticsearch]heap out of memory(OOM)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb5XpZq%2FbtrOmKH80DK%2FKjhUxvR6PgBGKx81UgSp3k%2Fimg.png)
[elasticsearch]heap out of memory(OOM)# DataBase/Elasticsearch2022. 8. 19. 08:35
Table of Contents
728x90
반응형

가이드에는 힙사이즈를 전체 물리 메모리의 50%로 셋팅하는것으로 권장.
32기가라면 16기가정도로 셋팅.
Set Xms and Xmx to no more than 50% of your total memory. Elasticsearch requires memory for purposes other than the JVM heap. For example, Elasticsearch uses off-heap buffers for efficient network communication and relies on the operating system’s filesystem cache for efficient access to files. The JVM itself also requires some memory. It’s normal for Elasticsearch to use more memory than the limit configured with the Xmx setting.
힙 메모리 사용률 체크
엘라스틱서치 로그에서 확인하거나 REST API로 확인가능.
[darksharavim]curl http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
1xx.2xx.1xx.xx1 26 95 4 0.07 0.11 0.21 cdfhilmrstw * node-1
Advanced configuration | Elasticsearch Guide [8.4] | Elastic
When running in a container, such as Docker, total memory is defined as the amount of memory visible to the container, not the total system memory on the host.
www.elastic.co
https://www.elastic.co/kr/blog/significantly-decrease-your-elasticsearch-heap-memory-usage
Elasticsearch 힙 메모리 사용 대폭 감소
Elasticsearch 노드당 가능한 한 많은 데이터를 넣는 것은 종종 비용을 줄이는 데 있어 중요합니다. 데이터 GB당 필요한 힙 메모리의 양을 극적으로 줄이기 위해 Elasticsearch 7.7에서 도입되는 개선 사
www.elastic.co
728x90
반응형
'# DataBase > Elasticsearch' 카테고리의 다른 글
[ES]Content-Type header [application/x-www-form-urlencoded] is not supported (0) | 2022.10.04 |
---|---|
logstash grok 정규표현식 (0) | 2022.09.02 |
kibana 8.2.3 install (0) | 2022.06.17 |
logstash 8.2.3 install (0) | 2022.06.17 |
[elasticsearch]bootstrap check failure (0) | 2022.06.16 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!