사이트 내 전체검색
[linux] MySQL을 모니터링하자 MySQL용 top Mytop
로빈아빠
https://cmd.kr/server/329 URL이 복사되었습니다.

본문

MySQL을 모니터링하자 MySQL용 top Mytop

MySQL을 모니터링하기 위한 Mytop이라는 유틸러티가 있더군요.
리눅스용 시스템 모니터링 프로그램인 top과 유사합니다.

PERL로 짜여져 있고. MySQL 3.22.x, 3.23.x, 4.x 의 쓰레드와 퍼포먼스를 모니터링 할 수 있습니다.

초당 쿼리수, 키버퍼의 효율등을 한눈에 모니터링 가능합니다.
아래 그림에서 Key Efficiency: 88.38% 이라고 나오는 부분이 디스크 대신에
키버버퍼에서 직접 읽어온 횟수가 얼마나 되는지 백분율로 나타낸것으로 이 부분이 낮게 나타난다면 Key buffer의 크기를 늘려주어야합니다.

.mytop 파일을 자신의 홈디렉토리에 만들어주면 참 편합니다.
http://jeremy.zawodny.com/mysql/mytop/

mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of MySQL 3.22.x, 3.23.x, and 4.x servers. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term::ReadKey installed. And with Term::ANSIColor installed you even get color. If you install Time::HiRes, you'll get good real-time queries/second stats. As of version 0.7, it even runs on Windows (somewhat).
a1a3e0a0_122690466406076

댓글목록

등록된 댓글이 없습니다.

1,139 (11/23P)

Search

Copyright © Cmd 명령어 18.188.64.66