linux - C 语言编写的程序, 内存占用很高, 如何排查问题?
阿神
阿神 2017-04-17 16:44:58
0
3
348

一个基于开源代码的项目, 代码量有 4W 多行吧.

今天压测, 发现内存占用很高, 有啥分析方法或者工具吗?

使用了 glib 库, 发现线程有点多.

阿神
阿神

闭关修行中......

reply all (3)
Peter_Zhu

I plan to use tcmalloc to analyze the memory usage.
Then streamline the thread usage.

    伊谢尔伦

    Let’s dynamically analyze the memory leak problem first. . .

      迷茫

      You can use the valgrind tool to analyze whether there is a memory leak.
      Vargrind tutorial is here.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!