OutOfMemoryException - 没有想法 II

发布于 2024-08-26 03:43:16 字数 1933 浏览 4 评论 0原文

这个问题与我的上一个问题相关。

故事情节:我有一个消耗大量内存的 .NET 应用程序 如果您查看任务管理器VMSize。我想找出是什么消耗了这么多内存。

您可以在下图中看到虚拟机大小为2.46 GB 替代文本

好吧,现在我正在查看 .net 性能计数器

替代文本 http://s006。 radikal.ru/i213/1003/30/dd42433cd12d.jpg

已提交保留字节加起来仅为1.2 GB

现在让我们看看windb sos 调试。 让我们运行 eeheap -gc 命令

alt text http://s001.radikal.ru/ i194/1003/e8/9da33856ed58.jpg

GC 使用的堆大小仅为340 MB。剩余的已用内存在哪里? 我需要找出为什么 TaskManager 中的 WM 大小是 2.4 GB

UPDATE

--------------------------------------
Total LoaderHeap size: 0x74c000(7651328)bytes
=======================================
Number of GC Heaps: 1
generation 0 starts at 0x0000000081b89d00
generation 1 starts at 0x0000000081a83b20
generation 2 starts at 0x0000000001281000
ephemeral segment allocation context: none
         segment            begin         allocated             size
0000000001280000 0000000001281000  00000000057416a0 0x00000000044c06a0(72091296)
000000004ad00000 000000004ad01000  00000000513c1cc8 0x00000000066c0cc8(107744456)
000000007fff0000 000000007fff1000  000000008994e310 0x000000000995d310(160813840)
Large object heap starts at 0x0000000011281000
         segment            begin         allocated             size
0000000011280000 0000000011281000  00000000112c67d0 0x00000000000457d0(284624)
Total Size        0x14523e48(340934216)
------------------------------
GC Heap Size        0x14523e48(340934216)

This question is related to my previous question.

The storyline: I have an .NET application which consumes a lot of memory
if you look at task manager VMSize. I am trying to find out what consumes this amount of memory.

You see in the picture below that VM size is 2,46 GB
alt text

Ok now I am looking at .net performance counters

alt text http://s006.radikal.ru/i213/1003/30/dd42433cd12d.jpg

Committed and reserved bytes add up to only 1,2 GB

Now lets look at windb sos debugging.
Let's run eeheap -gc command

alt text http://s001.radikal.ru/i194/1003/e8/9da33856ed58.jpg

The heap size used by GC is only 340 MB. Where is the rest of used memory?
I need to discover why WM size in TaskManager is 2.4 GB

UPDATE

--------------------------------------
Total LoaderHeap size: 0x74c000(7651328)bytes
=======================================
Number of GC Heaps: 1
generation 0 starts at 0x0000000081b89d00
generation 1 starts at 0x0000000081a83b20
generation 2 starts at 0x0000000001281000
ephemeral segment allocation context: none
         segment            begin         allocated             size
0000000001280000 0000000001281000  00000000057416a0 0x00000000044c06a0(72091296)
000000004ad00000 000000004ad01000  00000000513c1cc8 0x00000000066c0cc8(107744456)
000000007fff0000 000000007fff1000  000000008994e310 0x000000000995d310(160813840)
Large object heap starts at 0x0000000011281000
         segment            begin         allocated             size
0000000011280000 0000000011281000  00000000112c67d0 0x00000000000457d0(284624)
Total Size        0x14523e48(340934216)
------------------------------
GC Heap Size        0x14523e48(340934216)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅人 2024-09-02 03:43:16

苔丝发表了一篇关于其他内存使用来源的文章。检查 https://blogs.msdn.com/tess/archive /2006/02/15/532804.aspx

Tess did a post on other sources of memory usage. Check https://blogs.msdn.com/tess/archive/2006/02/15/532804.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文