积极答复者
问题:运行WPF 程序,windows XP 2core ,内存正常。客户有一台机器windows XP 4core,内存翻倍。原因?

问题
-
问题:windows XP 2core ,运行WPF 程序,内存正常。
客户那边有一台笔记本,Windows xp 4core 运行WPF 程序,内存是2core 的2倍,
不知道是什么原因? 望解惑- 已移动 ThankfulHeart 2014年10月26日 7:52
全部回复
-
你好:
WPF应用程序的内存分配会受到很多因素影响,.net运行时会根据机器的内存,显存,CPU等硬件情况对内存占用进行优化,如果机器环境比较好的话可能就会多分配内存以提高程序运行效率,视觉效果等。
GC会视运行环境的情况对内存进行不定期的回收,很难判断具体是什么原因引起内存分配差别的。最好是通过一些工具来分析一下内存分配情况,判断是哪种因素影响了.net运行时多分配了这么多内存。比如ProfView,CLRProfiler等。
实际上这是很正常的现象,如果没有发现内存泄漏的问题没有必要关心内存分配情况。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
这些机制都已经被.net封装起来,只能通过一些文档,文章来了解,建议你看一下下面这些链接:
.NET Memory usage - A restaurant analogy
Memory Usage Auditing For .NET Applications
Fundamentals of Garbage Collection
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- 已编辑 Caillen 2014年10月23日 11:16