本文介绍了这是真实的陈述吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 如果我使用Perfmon查看我的应用程序的GC句柄数量,并且 它在几个小时内保持不变,我没有问题 释放我应用中的非托管资源。这是真的吗? 我有一个耗尽内存的应用程序。在运行了几个小时之后,使用Perfmon,中的#Bytes,所有堆都保持在2.5MB左右。 TaskMgr显示我的 进程使用~75MB并且稳步增长。如果内存不是任何.Net堆使用的,那么我就不会增加GC的数量 Handles,其中哎呀消耗的记忆力是什么? 有人可以请怜悯我,并指出我可能会对此简单解释吗?我一直在想我理解垃圾 集合的工作方式,以及从gen0到gen1到gen2的升级,但我必须是 在这里缺少一些基本的东西。 TIA, Chris 解决方案 If I use Perfmon to look at the number of GC Handles for my application, andit stays about the same over several hours, I don''t have an issue withfreeing up unmanaged resources in my app. Is that true?I have an application that is using up memory. Using Perfmon, # Bytes inall heaps stays around 2.5MB after running for hours. TaskMgr shows myprocess to be using ~75MB and growing steadily. If the memory isn''t beingused by any of the .Net heaps, and I''m not increasing the number of GCHandles, where the heck is the memory being consumed?Could someone please take pity on me and point me toward the, probablysimple, explanation for this? I keep thinking I understand the way garbagecollection works, and the promotion from gen0 to gen1 to gen2, but I must bemissing something fundamental here.TIA,Chris 解决方案Good luck. Let us know what you find.----Larry Brasfieldemail: do***********************@hotmail.comAbove views may belong only to me. 这篇关于这是真实的陈述吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-27 17:43
查看更多