简体   繁体   English

为什么WPF应用程序进程占用更多内存?

[英]Why WPF application process occupy more memory?

I am developing an application using WPF. 我正在使用WPF开发一个应用程序。 I am using a lot of Grid layouts. 我使用了很多网格布局。 In my application, we use five services to communicate. 在我的应用程序中,我们使用五种服务进行通信。 All works fine. 一切正常。 Sometimes, the application slowed way down so I checked task manager to see the memory usage. 有时,应用程序放慢速度,所以我检查了任务管理器以查看内存使用情况。 Then I saw 1.285 GB memory occupied by the application process. 然后我看到了应用程序进程占用的1.285 GB内存。 I am using Windows 7 operating system. 我使用的是Windows 7操作系统。 My Application developed in wpf 4.0 version. 我的应用程序是在wpf 4.0版本中开发的。 In that we use WCF , WIF etc for communication. 我们使用WCF,WIF等进行通信。 I also used Images. 我也用过Images。 Can any one give the solution why application process occupies more memory? 任何人都可以解决为什么应用程序进程占用更多内存?

All the images are small images.Actually my application occupies nearly 110 MB.But sometimes it occupies 1.238 GB memory.I am not using Large images in my application. 所有图像都是小图像。实际上我的应用程序占用了近110 MB。但有时它占用了1.238 GB内存。我在我的应用程序中没有使用大图像。

There's no magic bullet answer here for you, it really depends on what you are doing in your application. 这里没有灵丹妙药的答案,这实际上取决于你在申请中做了什么。

Its time to jump into the world of using a profiler and figuring out what is going on in your own app. 是时候进入使用分析器的世界,并弄清楚你自己的应用程序中发生了什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM