网上找了很久,都是说google-perftools的,所以就下来来试试!
wget
tar -zxvf google-perftools-1.3.tar.gz
cd google-perftools-1.3
./configure
make;make install
echo "/usr/local/lib" >>/etc/ld.so.conf
cp mysqld_safe mysqld_safe.bak
vi mysqld_safe
....
export LD_PRELOAD=/usr/local/lib/libtcmalloc.so
....
service mysql stop
service mysql start
/usr/sbin/lsof -n | grep tcmalloc
mysqld 21381 mysql mem REG 8,3 1477553 9994246 /usr/local/lib/libtcmalloc.so.0.0.0
不知道效果怎么样,只能等到以后再看看了!
阅读(1234) | 评论(0) | 转发(0) |