• 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已经链接到指定路径的版本,替换成功。

  • 相关阅读:
    Springboot websocket学习Demo
    webpack与vue使用
    图片服务器图片剪切处理
    时间字段设置默认值
    函数的递归
    数据类型检测及封装
    隔行变色
    if-else案例–开关灯
    作用域
    数据类型核心操作步骤和原理
  • 原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/16072952.html
Copyright © 2020-2023  润新知