dotnet 虚拟内存占用这么高吗

2019-01-02 20:29发布

 

这数据不对劲吧,普通的api站点,刚启动就20g了

3条回答
余欢
2楼-- · 2019-01-02 20:46

你的电脑内存真多!

查看更多
初与友歌
3楼-- · 2019-01-02 20:54

这里是对应分配的虚拟内存地址,而不是占用的虚拟内存大小

查看更多
与君花间醉酒
4楼-- · 2019-01-02 21:07

VIRT 并不是表示进程所占用的内存,而是表示进程可以访问的内存空间,详见 What does Virtual memory size in top mean?

VIRT represents how much memory the program is able to access at the present moment.

github 上也有人提出过这个问题 High virtual memory usage on Ubuntu 16,得到的回答是:

please note that the high virtual memory usage is not an issue. It doesn't cost you anything (except for a bit of memory for the processor page tables), since this space is private to each process. So even if it was using hundreds of gigabytes of VM or more, it would still be ok.

查看更多
登录 后发表回答