初步推断有两种情况:
关于参数配置不当,我分析完各种buffer,cache参数配置后没有发现异常或特别严重的错误,于是尝试从内存泄漏的角度来寻找突破口
pmap : 用来生成一个进程的内存使用报表
The pmap command reports the memory map of a process or processes.
pt-config-diff : 用来比较Mysql 配置文件的差异
pt-config-diff diffs MySQL configuration files and server variables. CONFIG can be a filename or a DSN. At least two CONFIG sources must be given. Like standard Unix diff, there is no output if there are no differences.
[root@abc ~]# pmap -x 14769
14769: /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/abc.err --open-files-limit=8192 --pid-file=/var/lib/mysql/abc.pid --socket=/var/lib/mysql/mysql.sock --port=3306
Address Kbytes RSS Dirty Mode Mapping
0000000000400000 7484 3704 0 r-x-- mysqld
0000000000d4e000 412 216 116 rw--- mysqld
0000000000db5000 112 108 108 rw--- [ anon ]
0000000000fb4000 516 4 0 rw--- mysqld
000000000adbf000 9286784 7807156 7807116 rw--- [ anon ]
00000035b3a00000 112 100 0 r-x-- ld-2.5.so
00000035b3c1c000 4 4 4 r---- ld-2.5.so
00000035b3c1d000 4 4 4 rw--- ld-2.5.so
00000035b3e00000 1340 528 0 r-x-- libc-2.5.so
00000035b3f4f000 2048 0 0 ----- libc-2.5.so
00000035b414f000 16 16 4 r---- libc-2.5.so
00000035b4153000 4 4 4 rw--- libc-2.5.so
...
...
00002ae84c000000 63804 2524 2524 rw--- [ anon ]
00002ae84fe4f000 1732 0 0 ----- [ anon ]
00002ae850000000 26976 2788 2788 rw--- [ anon ]
00002ae851a58000 38560 0 0 ----- [ anon ]
00007fffe4cbd000 84 16 16 rw--- [ stack ]
00007fffe4ce1000 12 4 0 r-x-- [ anon ]
ffffffffff600000 8192 0 0 ----- [ anon ]
---------------- ------ ------ ------
total kB 44114104 39346676 39341556
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。