logstash 오류 기록

1702 단어 elasticsearch
 logstash error=Cannotallocatememory(errno=12) 

오류는 메모리를 할당할 수 없음을 의미합니다
The problem is inherent with the way Java allocates memory when executing processes. When then exec(). Forking creates a child process by duplicating the current process. By duplicating the current process, the new child process will request approximately the same amount of memory as its parent process, essentially doubling the memory required. However, this does not mean all the memory allocated will be used, as exec() is immediately called to execute the different code within the child process, freeing up this memory. As an example, when Stash tries to locate git, the Stash JVM process must be forked, approximately doubling the memory required by Stash.
해결 방안은 두 가지가 있는데 첫 번째는 다른 방법(예를 들어posix_spawn)으로 자바의fork/exec 방법을 대체하여 메모리를 신청하는 것이고, 두 번째는 시스템의 Over-commit을 열어 시스템의 사용 가능한 메모리 검사를 건너뛰고 직접 분배하는 것이다.
 : echo 1 > /proc/sys/vm/overcommit_memory
 :   /etc/sysctl.conf,  vm.overcommit_memory = 1

좋은 웹페이지 즐겨찾기