一.下载安装jemalloc
#wget http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2 #tar jxvf jemalloc-3.6.0.tar.bz2 #cd jemalloc-3.6.0 #./configure --prefix=/usr/local/jemalloc
二.在mysqld_safe文件中导入
# executing mysqld_safe
#jemalloc
export LD_PRELOAD=/usr/local/jemalloc/lib/libjemalloc.so
三.查看是否导入成功
#lsof -n | grep jemalloc
时间: 2024-11-04 19:21:25