tcmalloc 动态库替换(CentOS 操作系统)

Ceph 14.2.8版本中tcmalloc存在内存泄漏的问题,需要将tcmalloc pagesize调整为64,重新编译,替换tcmalloc动态库,该操作在三个Ceph存储节点上均需要执行。

步骤1 tcmalloc编译。

  1. 编译准备。
mkdir /home/gperftools;cd /home/gperftools
wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.8/
gperftools-2.8.tar.gz --no-check-certificate
tar -zvxf gperftools-2.8.tar.gz;cd gperftools-2.8
  1. 编译。
./configure --prefix=/usr/local/lib --with-tcmalloc-pagesize=64
make
make install

步骤2 动态库替换。

echo '/usr/local/lib/lib/' >> /etc/ld.so.conf
ldconfig

步骤3 重启Ceph服务。

systemctl restart ceph.target

步骤4 检查libtcmalloc。

ldd /usr/bin/ceph-osd

libtcmalloc已经链接到指定路径的版本,替换成功。

posted @   哈喽哈喽111111  阅读(759)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2021-03-29 使用pip的方式安装docker-compose
2017-03-29 3.1.3、控制结构
2017-03-29 3.1.1、渲染模板
2017-03-29 3.1.2、变量
2017-03-29 3.1、Jinja2模板引擎
2017-03-29 第3章 模板
2017-03-29 2.6、Flask扩展
点击右上角即可分享
微信分享提示