如何避免IIS 7.5中的内存不足异常? [英] How to avoid Out of Memory Exception in IIS 7.5?

查看:67
本文介绍了如何避免IIS 7.5中的内存不足异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何避免IIS 7.5中的内存不足异常?我正在使用带有c#的asp.net。

我试图加载我网站中的所有活动卡[40万]。我等了5-10分钟。然后报告也没有加载。我试图再次加载相同的报告3次。在这段时间内网站没问题。



但是在10分钟内,门户网站开始显示报告错误,并且读取或接受文件失败。没有其他恶意软件回程正在运行。在重新启动Web服务器时它变得很好。我想解决这个问题。

How to avoid Out of Memory Exception in IIS 7.5? I am using asp.net with c#.
I tried to load all active cards in my site [400 thousand]. I waited for 5-10 minutes. Then also the report was not loading. I tried to load the same report 3 more times. During this time Site was okay.

But within 10 minutes, portal started showing error in report and also reading or accepting files was failing. No other malware backprocesses were running. On restarting the Web Server it became fine. I want to resolve this.

推荐答案

亲爱的Rahul





我释放所有对象,因为某个对象可以包含更多数据,如数据集,数据表,会话等。

II。在重新定位后,对象工作进程可以轻松处理。

III。使用后关闭Sql连接,文件IO操作。

IV。使用数据集释放数据集中的所有值后,关闭所有Datareaders

V.
Dear Rahul


I. Release your all object because some object can contain more data like dataset,datatable,session etc .
II. After realesing object worker process can process easly.
III. Close your Sql-connection,File IO Operation after you have used it.
IV. Close all Datareaders after you have used
V. after using dataset release all values from dataset


这篇关于如何避免IIS 7.5中的内存不足异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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