![[elasticsearch]heap out of memory(OOM)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fb5XpZq%2FbtrOmKH80DK%2FAAAAAAAAAAAAAAAAAAAAAIYLktxrRkTbBVFkMhg0JWVoxTo-f_KpktVzUR-ESjg3%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DhejhORwGX8ANgoML5Tq3SgLKrO8%253D)
# DataBase/Elasticsearch2022. 8. 19. 08:35[elasticsearch]heap out of memory(OOM)
가이드에는 힙사이즈를 전체 물리 메모리의 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. I..