반응형
1. 모니터링 및 초기화 명령어
- show status – MySQL 데이타베이스의 현재 상황
- show Processlist – MySQL 프로세스 목록
- show variables – 설정 가능한 모든 변수 목록
- flush logs – MySQL의 로그파일 초기화
- flush status – MySQL 상태정보 초기화
- flush thread – 쓰레드 캐시에 저장된 쓰레드 초기화
- flush tables – MySQL에 캐싱된 테이블 초기화
- flush privileges – 권한정보 재 설정
2. Connection 튜닝
1. status
- Aborted_clients – 클라이언트 프로그램이 비 정상적으로 종료된 수
- Aborted_connects – MySQL 서버에 접속이 실패된 수
- Max_used_connections – 최대로 동시에 접속한 수
- Threads_cached – Thread Cache의 Thread 수
- Threads_connected – 현재 연결된 Thread 수
- Threads_created – 접속을 위해 생성된 Thread 수
- Threads_running – Sleeping 되어 있지 않은 Thread 수
2. system variables
- wait_timeout – 종료전까지 요청이 없이 기다리는 시간 ( TCP/IP 연결, Shell 상의 접속이 아닌 경우 )
- thread_cache_size – thread 재 사용을 위한 Thread Cache 수로써, Cache 에 있는 Thread 수보다 접속이 많으면 새롭게 Thread를 생성한다.
- max_connections – 최대 동시 접속 가능 수
반응형