w3wp.exe进程占用大量内存 [英] w3wp.exe process taking huge RAM

查看:181
本文介绍了w3wp.exe进程占用大量内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,w3wp.exe正在为我的应用程序占用大量内存(RAM)...当我运行应用程序时,系统内存不足,有时对象引用未设置为对象实例 ..我正在使用LINQ to SQL,asp.net 3.5请告诉我。

提前谢谢..

解决方案

很可能是你的代码导致内存泄漏,即你正在分配巨大的资源,而不是释放内存。

有些情况下,应用程序可以在处理大量字符串时执行此操作,但我建议您检查一下用于图像,文件,连接,流字符串,XML等对象的代码。

最好的方法是使用配置文件并分析内存占用。



至于内存不足异常,很明显,一个系统运行内存不足,然后一大堆代码需要内存分配,如(new object())然后抛出空引用异常。 / BLOCKQUOTE>

Hi All, w3wp.exe process is taking huge memory (RAM) for my app... when i run the app am getting "system out of memory" and sometimes "object reference not set to an instance of an object".. am using LINQ to SQL ,asp.net 3.5 Please advise me .
Thanks in advance..

解决方案

Most probably your code is causing a memory leak, i.e. you are allocating huge resources and not freeing up the memory.
There are situations where the application can do that when it is handling huge strings, but I would suggest you check your code for objects like images, files, connections, streams strings, XML etc.
The best way is to use profiles and analyze the memory occupation.

As to the out of memory exception, it is clear, one the system runs low on memory, and then a lime of code requires memory allocation like (new object ()) then it is null reference exception with be thrown.


这篇关于w3wp.exe进程占用大量内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆