mysql:mymemcheck
mymemcheck
http://dsas.blog.klab.org/archives/50860867.html
KLab社製ツール。以下のチェックが可能。
- 最低限必要な物理メモリの大きさ
- IA-32のLinuxでのヒープサイズの制限
- innodb_log_file_sizeの最大サイズ
# cd /root # mkdir bin # cd /bin # curl -LOk http://xrl.us/cpanm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 262k 100 262k 0 0 71760 0 0:00:03 0:00:03 --:--:-- 3276k # ls alsaunmute dash ed hostname mknod pwd sh true arch date egrep ipcalc mktemp raw sleep umount awk dbus-cleanup-sockets env iptables-xml more readlink sort uname basename dbus-daemon ex kbd_mode mount red stty unicode_start bash dbus-monitor false kill mountpoint redhat_lsb_init su unicode_stop cat dbus-send fgrep link mv rm sync unlink chgrp dbus-uuidgen find ln nano rmdir tar usleep chmod dd findmnt loadkeys netstat rnano taskset vi chown df gawk login nice rpm tcsh view cp dmesg gettext ls nisdomainname rvi touch ypdomainname cpanm dnsdomainname grep lsblk ping rview tracepath zcat cpio domainname gtar mail ping6 sed tracepath6 csh dumpkeys gunzip mailx plymouth setfont traceroute cut echo gzip mkdir ps setserial traceroute6 # chmod 755 cpanm # cpanm -v cpanm (App::cpanminus) 1.7001 on perl 5.010001 built for x86_64-linux-thread-multi Work directory is /root/.cpanm/work/1382421288.10137 You have make /usr/bin/make You have LWP 5.833 You have /bin/tar: tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. 使用許諾 GPLv3+: GNU GPL version 3 またはそれ以降 <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. [参考訳] これはフリーソフトウェアです. 変更と再配布は自由です. 法律で認められる範囲で「無保証」です. 作者: John Gilmore, Jay Fenlason. You have /usr/bin/unzip Usage: cpanm [options] Module [...] Try `cpanm --help` or `man cpanm` for more options.
# cpanm Readonly.pm --> Working on Readonly Fetching http://www.cpan.org/authors/id/R/RO/ROODE/Readonly-1.03.tar.gz ... OK Configuring Readonly-1.03 ... OK Building and testing Readonly-1.03 ... OK Successfully installed Readonly-1.03 1 distribution installed
# cpanm UNIVERSAL::require.pm --> Working on UNIVERSAL::require Fetching http://www.cpan.org/authors/id/N/NE/NEILB/UNIVERSAL-require-0.15.tar.gz ... OK Configuring UNIVERSAL-require-0.15 ... OK Building and testing UNIVERSAL-require-0.15 ... OK Successfully installed UNIVERSAL-require-0.15 1 distribution installed
# wget http://log.blog.klab.org/support/20061226/mymemcheck.gz --2013-10-22 14:59:23-- http://log.blog.klab.org/support/20061226/mymemcheck.gz log.blog.klab.org をDNSに問いあわせています... 211.13.209.203 log.blog.klab.org|211.13.209.203|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 2298 (2.2K) [text/plain] `mymemcheck.gz' に保存中 100%[============================================================================>] 2,298 --.-K/s 時間 0s 2013-10-22 14:59:23 (205 MB/s) - `mymemcheck.gz' へ保存完了 [2298/2298] # gunzip mymemcheck.gz # chmod 777 ./mymemcheck # ./mymemcheck /etc/my.cnf
mysql/mymemcheck.txt · 最終更新: 2016/04/12 02:18 by clownclown