Skip to content

조회 수 8733 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
mytop 이란 ?

   mytop은 콘솔기반(그래픽기반이 아님)으로 mysql 3.22.X, 3.23.X, 4.X대의  threads 와 모든 perfomance를 모니터링 해주는
   툴이다. mytop은 대부분의 unix 머신에서 동작하며 ( mac os X 포함 ) 이를 위해서는 시스템에 perl,DBI,Term::ReadKey 패
   키지들이 설치되어 있어야 합니다.만약 Term::ANSIColor 패키지가 설치되어 있다면 모니터링결과를 color 로 확인하실수
   있으며 Time::HiRes 패키지가 설치되어있다면 초당 쿼리를 실시간으로 확인하실수 있게 됩니다.

필요한것들

   Perl 5.005 또는 이상
   Getopt :: logn
   DBI                  
   DBD-mysql      
   Term-ReadKey  
   ANSIColor        
   Mytop              

패키지

DownLoad 위치

  Mytop

  http://jeremy.zawodny.com/mysql/mytop/

  DBI

  http://search.cpan.org/dist/DBI/ 

  DBD

  http://search.cpan.org/~rudy/DBD-mysql-2.9004

  Term-Readkey

  http://search.cpan.org/dist/TermReadKey

  ANSIColor

  http://search.cpan.org/dist/ANSIColor/



지원 플랫폼

   Linux (2.2.x , 2.4.x)
   FreeBSD (2.2,3.x,4.x)
   Mac OS X
   BSDI 4.x
   Solaris 2.x
   Windows NT 4.x ( ActivePerl )


설치하기

1.DBI 설치

   [root@soma src]# tar -xvzf DBI-1.46.tar.gz
   [root@soma src]# cd DBI-1.46
   [root@soma DBI-1.46]# perl Makefile.PL
   [root@soma DBI-1.46]# make
   [root@soma DBI-1.46]# make install


2.DBD-mysql 설치

   [root@soma src]# tar -xvzf DBD-mysql-2.9004.tar.gz
   [root@soma src]# cd  DBD-mysql-2.9004
   [root@soma DBD-mysql-2.9004]# perl Makefile.PL
   [root@soma DBD-mysql-2.9004]# make

   [root@soma DBD-mysql-2.9004]# make install


3.TermReadkey 설치

   [root@soma src]# tar -xvzf TermReadkey-2.21.tar.gz
   [root@soma src]# cd TermReadkey-2.21
   [root@soma TermReadkey-2.21]# perl Makefile.PL
   [root@soma TermReadkey-2.21]# make

   [root@soma TermReadkey-2.21]# make install


4.ANSIColor 설치

   [root@soma src]# tar -xvzf ANSIColor-1.09.tar.gz
   [root@soma src]# cd ANSIColor-1.09
   [root@soma ANSIColor-1.09]# perl Makefile.PL
   [root@soma ANSIColor-1.09]# make

   [root@soma ANSIColor-1.09]# make install


5.Time-HiRes 설치

   [root@soma src]# tar -xvzf Time-HiRes-1.66.tar.gz
   [root@soma src]# cd Time-HiRes-1.66
   [root@soma Time-HiRes-1.66]# perl Makefile.PL
   [root@soma Time-HiRes-1.66]# make

   [root@soma Time-HiRes-1.66]# make install


6.mytop 설치

   [root@soma src]# tar -xvzf mytop-1.4.tar.gz
   [root@soma src]# cd mytop-1.4
   [root@soma mytop-1.4]# perl Makefile.PL
   [root@soma mytop-1.4]# make

   [root@soma mytop-1.4]# make install


확인하기

   [root@soma]# mytop -u root -p 123456 -d soma

Arguments 설명

Argument

설명

 -u

  사용자명                                                    ( 기본 : root )

 -p

  패스워드                                                    ( 기본 : none )

 -h

  hostname                                                   ( 기본 : localhost )

 -port

  mysql 포터                                                 ( 기본 : 3306 )

 -s

  refresh 시간                                               ( 기본 : 5초 )

 -d

  Database 선택                                           ( 기본 : test )

 -b

  batch mode                                                ( 기본 : unset )

 -S

  socket                                                       ( 기본 : none )

 -header or -noheader

 header 정보를 출력할 것이냐 아니냐를 결정 ( 기본 : header )

 -color or -nocolor

  출력시 color 지원여부 결정

 -idle or -noidle

  idle thread 출력여부 결정                            ( 기본 : idle )

Option 설명

Option

설명

  d

  특정 Database 만 출력하고 싶을경우

  f

  Thread ID 별로 실행중인 모든 Query를 출력하고 싶을 경우

  h

  접속 host 별로 출력하고 싶을 경우 ( localhost or hostname )

  i

  idle 상태인 리스트를 출력시키지 않을때

  k

  특정 thread 번호를 죽일때

  m

  초당 쿼리수 보기

  p

  일시정지

  q

  mytop 종료

  r

  모든 카운터 정보 초기화

  s

  refresh 시간 설정

  u

  사용자 변경



  1. MySQL 클러스터

    Date2009.11.19 ByADMINPLAY Views9979
    Read More
  2. HeartBeat를 이용한 MySQL HA 구성

    Date2009.11.19 ByADMINPLAY Views10348
    Read More
  3. Mysql 5.0.67 Cluster 소스설치 구성하기

    Date2009.11.19 ByADMINPLAY Views9895
    Read More
  4. mysqli 동적모듈 추가

    Date2009.11.01 ByADMINPLAY Views9403
    Read More
  5. mysql 초간단 설치

    Date2009.10.15 ByADMINPLAY Views6707
    Read More
  6. MySQL 4.1 이상에서 한글 사용

    Date2009.09.28 ByADMINPLAY Views7291
    Read More
  7. MySQL Commercial License

    Date2009.09.28 ByADMINPLAY Views7989
    Read More
  8. mysqld: Sort aborted ( mysqld-nt : Sort aborted )

    Date2009.08.31 ByADMINPLAY Views9931
    Read More
  9. mysql 설치 옵션 해석

    Date2009.08.08 ByADMINPLAY Views8869
    Read More
  10. mysql 설치시 컴파일에러 ../depcomp: line 512 exec : g++ : not found

    Date2009.08.08 ByADMINPLAY Views9654
    Read More
  11. Mysql InnoDB 관리하기

    Date2009.07.31 ByADMINPLAY Views11461
    Read More
  12. mysql 백업

    Date2009.07.25 ByADMINPLAY Views8589
    Read More
  13. MySQL 최대성능 올리기

    Date2009.07.19 ByADMINPLAY Views7927
    Read More
  14. mysql 버전 3.23.58 (4.0.X)설치 가 안되서 그러는데

    Date2009.07.14 ByADMINPLAY Views6890
    Read More
  15. 리눅스 환경에서 mySql JDBC

    Date2009.07.12 ByADMINPLAY Views10356
    Read More
  16. [mysql] Manager of pid-file quit without updating fi[실패]

    Date2009.06.29 ByADMINPLAY Views13639
    Read More
  17. Mysql 비번 변경/비번분실시

    Date2009.06.29 ByADMINPLAY Views7890
    Read More
  18. MySQL 스토리지 엔진 MyISAM과 InnoDB의 차이

    Date2009.06.25 ByADMINPLAY Views8776
    Read More
  19. mysqladmin 사용하기 DB연결수 및 세부정보 알아내기

    Date2009.06.25 ByADMINPLAY Views6843
    Read More
  20. mytop 으로 mysql 모니터링하기

    Date2009.06.25 ByADMINPLAY Views8733
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234