duan0708676887 2019-07-25 05:53
浏览 83

GODEBUG = memprofilerate环境变量对pprof不起作用

ubuntu$ echo $GODEBUG memprofilerate=1024

I set this var in my bashrc. But still when I do heap profiling only allocs > 512kb are seen in top command. What am I missing?

More outputs:

ubuntu$ env | grep '^GODEBUG='
GODEBUG=memprofilerate=1024
ubuntu$ env | grep '^GODEBUG=' | xxd
00000000: 474f 4445 4255 473d 6d65 6d70 726f 6669  GODEBUG=memprofi
00000010: 6c65 7261 7465 3d31 3032 340a            lerate=1024.

Edit: This is a long running process running over 4 days. The linux top -p command is showing a steady increase in memory used by this process but pprof is not able to catch newly allocated space.

Last 2 profile collections: Jul 26 2pm : Top shows used KiB mem - 3145692. pprof profile heap1.out Jul 28 7pm : Top shows used KiB mem - 3915992. pprof profile heap2.out

go tool pprof of heap1.out and heap2.out show the same top 27 inuse_space numbers.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
    • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
    • ¥15 lingo18勾选global solver求解使用的算法
    • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
    • ¥15 Python3.5 相关代码写作
    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动