duanjiu6697 2015-11-23 15:44
浏览 33

Go中的内存消耗

I have a server written in Go which does not release the consumed memory. I started the program with the GODEBUG=gctrace=1 option and I get the following output:

scvg44: inuse: 1, idle: 423, sys: 425, released: 423, consumed: 1 (MB)
scvg45: inuse: 1, idle: 423, sys: 425, released: 423, consumed: 1 (MB)
...
scvg49: inuse: 1, idle: 423, sys: 425, released: 423, consumed: 1 (MB)
scvg50: inuse: 1, idle: 423, sys: 425, released: 423, consumed: 1 (MB)

So while the output says that 423 MB are released to the OS that seems not to be the case. The program has 423 MB idle memory for hours. Why does the program not release the memory?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Qt下使用tcp获取数据的详细操作
    • ¥15 idea右下角设置编码是灰色的
    • ¥15 全志H618ROM新增分区
    • ¥20 jupyter保存图像功能的实现
    • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
    • ¥15 NAO机器人的录音程序保存问题
    • ¥15 C#读写EXCEL文件,不同编译
    • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
    • ¥15 扩散模型sd.webui使用时报错“Nonetype”
    • ¥15 stm32流水灯+呼吸灯+外部中断按键