OutOfMemoryException - 没有想法 II
这个问题与我的上一个问题相关。
故事情节:我有一个消耗大量内存的 .NET 应用程序 如果您查看任务管理器VMSize。我想找出是什么消耗了这么多内存。
好吧,现在我正在查看 .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
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
苔丝发表了一篇关于其他内存使用来源的文章。检查 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