
top 시스템의 상태 파악(cpu, 메모리, 프로세스) 기본설정은 3초마다 화면갱신 [darksharavim]top top - 13:40:57 up 179 days, 22:28, 2 users, load average: 0.00, 0.02, 0.05 Tasks: 200 total, 1 running, 199 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.4 us, 2.9 sy, 0.0 ni, 95.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 16266496 total, 8796040 free, 5646192 used, 1824264 buff/cache KiB Swap: 5242876 total, 2562760 free, 2680116 us..
![[mysql]innodb 메모리별 설정값 예시](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F6Ofgj%2FbtsF3T6vCkX%2FbVd6i6iGqSGdpbvKUPjiPk%2Fimg.png)
default_storage_engine = InnoDB 기본 데이타베이스 엔진으로 InnoDB를 사용한다는 것 표시 innodb_buffer_pool_size 운영중인 시스템의 DB 크기 이상을 할당. 시스템 메모리의 65%~75% 권장, 시스템 메모리 8GB RAM라면 일반적으로 5~6GB 정도 할당. buffer pool이 너무 작으면 페이지가 buffer pool에서 플러시 되어 잠시 후 다시 필요하게 되므로 과도한 I/O 가 발생할 수 있으며, 너무 큰 경우 메모리 경쟁으로 스와핑이 발생할 수 있음. innodb_log_file_size 데이타베이스 충돌 발생 시 다시 실행하거나 이전으로 되돌릴 때 사용하는 메모리. 지나치게 크면 복구 시간이 길어지면서 비효율적이 될 수 있음. 위에서 설정한..
![[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)
가이드에는 힙사이즈를 전체 물리 메모리의 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..
![[trouble shooting]memory locking requested for elasticsearch process but memory is not locked](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb3JZ8i%2FbtrEU2ka4sH%2FmYNTNI9A3lg1fbI7KQ1YXK%2Fimg.png)
엘라스틱서치 실행시 아래와 같이 오류발생확인 [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 (bl..