orzdba的安裝
只能在本地服務(wù)器上運(yùn)行,因?yàn)槭褂胻cprstat收集信息
源碼地址
http://code.taobao.org/svn/orzdba/trunk/
# chmod +x orzdba
tcprstat工具安裝與使用
使用方法:
tcprstat是安裝在server端,統(tǒng)計(jì)分析本地網(wǎng)卡地址請求的響應(yīng)時(shí)間,可以用于臨時(shí)分析,也可定時(shí)任務(wù)做信息收集
下載
# wget -c https://github.com/Lowercases/tcprstat/archive/v0.3.1.tar.gz
# cp tcprstat-static.v0.3.1.x86_64 tcprstat
# chmod a+x tcprstat
# mv tcprstat /usr/bin/
需要安裝的perl依賴包:
yum install perl-Test-Simple
yum install perl-Time-HiRes
yum install perl-ExtUtils-CBuilder
yum install perl-ExtUtils-MakeMaker
yum install perl-DBD-MySQL
yum install perl-DBI
yum install perl-Module-Build-XSUtil
yum install perl-Class-Data-Inheritable.noarch
yum install perl-Module-Signature
yum install perl-Archive-Tar
yum install perl-Pod-Readme
安裝Perl的File:LockFfile模塊
安裝version模塊
wget http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-0.99.tar.gz
tar -zxvf version-0.99.tar.gz
cd version-0.99
perl Makefile.PL
make
make test
make install
安裝安裝File::Lockfile模塊:
wget http://search.cpan.org/CPAN/authors/id/G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz
tar -zxvf File-Lockfile-v1.0.5.tar.gz
cd File-Lockfile-v1.0.5
perl Build.PL
perl ./Build
perl ./Build test
perl ./Build install
安裝Class-Data-Inheritable模塊:
wget http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz
tar -zxvf Class-Data-Inheritable-0.08.tar.gz
cd Class-Data-Inheritable-0.08
perl Makefile.PL
make
make test
make install
安裝Module-Build模塊:
wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.31.tar.gz
tar -zxvf Module-Build-0.31.tar.gz
cd Module-Build-0.31
perl Build.PL
./Build
./Build test
./Build install
# ./orzdba -lazy -rt -S /u01/my3306/run/mysql.sock
count:此間隔內(nèi)完成的請求數(shù)量
avg:此間隔內(nèi)所有完成的請求,響應(yīng)的平均時(shí)間
95_avg:此間隔內(nèi),95%的請求量的平均響應(yīng)時(shí)間,單位微秒,該值較能體現(xiàn)MySQL Server查詢的平均響應(yīng)時(shí)間
./orzdba -innodb -S /u01/my3306/run/mysql.sock
遠(yuǎn)端orzdba: ./orzdba_remote --host=xxx.xxx.xxx.xxx --user=xx --port=3306 -mysql -sys
下載地址: http://down.51cto.com/data/2366812
參數(shù):
-mysql 查看run的線程數(shù),超過cpu個(gè)數(shù)后說明系統(tǒng)繁忙,有幾次我的服務(wù)器過1000,服務(wù)器就沒有反應(yīng)了。最后檢查時(shí)很多查詢占用了cpu,導(dǎo)致大量的insert等待,又阻塞其它的如delete/update操作。解決的方案時(shí),把這些查詢業(yè)務(wù)遷移到只讀庫上,只需關(guān)注延遲了。
-innodb
-lazy
-sys 遠(yuǎn)程的指令下,貌似sys的不準(zhǔn)
文章名稱:orzdba的安裝-創(chuàng)新互聯(lián)
本文來源:http://jinyejixie.com/article48/gpcep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、用戶體驗(yàn)、商城網(wǎng)站、網(wǎng)站設(shè)計(jì)、服務(wù)器托管、網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容