解决'System.OutOfMemoryException' 的问题
来源:互联网 发布:小米mix淘宝 编辑:程序博客网 时间:2024/05/21 06:17
Server Error in '/L' Application.
Exception of type 'System.OutOfMemoryException' was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
进过分析:由于应用程序池满了,造成内存不足!
在其中 server 是一个负载情况下可能会出现此问题。 例如,如果门户包含超过 100 个子网站,并且每个 100 个子网站中包含的一个或多个 Web 网页访问在同一时间可能会发生此问题。
替代方法
在博客园看到了一位园友写的文章《如何处理OutOfMemoryException异常?》,于是想和大家交流一下ASP.NET中出现OutOfMemoryException的问题。
实际上,在ASP.NET Web服务器上,ASP.NET所能够用到的内存,通常不会等同于所有的内存数量。在machine.config配置文件中,
当我们有一台很大内存的服务器时,“memoryLimit”这个值是需要进行适当的调整的。比如我们准备了一台chemas-microsoft-comfficemarttags" />
微软推荐的ASP.NET进程占用内存是不超过60%,并最好使计算出的实际值不超过
在IIS6中,ASP.NET进程的回收阈值不再由
但是,即使正确设置了这些配置,也不能保证完全避免OutOfMemoryException的发生,原因可能是多样而复杂的,比如内存回收操作可能耗时太多等等。开发人员要注意的,就是在代码中时刻牢记不要无谓的使用和浪费内存。:)
如果你有一台大内存的服务器,同时对Win32操作系统中对于进程最高使用
1、使用/3GB模式启动计算机,方法参加文后的链接
2、使用Windows Server 2003 64bits Edition
- 解决'System.OutOfMemoryException' 的问题
- 解决 ASP.NET 中 System.OutOfMemoryException 的问题
- ASP.NET 中关于 System.OutOfMemoryException 的问题与解决方法
- ASP.NET 中关于 System.OutOfMemoryException 的问题与解决方法
- System.OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常
- OutOfMemoryException问题的处理
- OutOfMemoryException问题的处理
- 解决Android加载大图片内存溢出的问题(OutofMemoryException)
- 解决Android加载大图片内存溢出的问题(OutofMemoryException)
- System.OutOfMemoryException
- System.OutOfMemoryException
- System.OutOfMemoryException
- System.OutOfMemoryException
- System.OutOfMemoryException
- System.OutOfMemoryException
- 解决 Xap 包装失败。引发类型为“System.OutOfMemoryException”的异常
- 解决 Xap 包装失败。引发类型为“System.OutOfMemoryException”的异常 .
- sqlserver,执行生成脚本时“引发类型为“System.OutOfMemoryException”的异常”(已解决)
- 防火墙资源(jetio,comodo,outpost,pc tool,zonealarm pro
- 嵌入式开发—C语言面试题
- 常见归一化公式
- ECMAScript的字符串连接
- C语言面试题大汇总之华为面试题
- 解决'System.OutOfMemoryException' 的问题
- Java IO 学习心得
- 公司通过ISO9000
- 硅谷招聘流行搞怪试题 Google面试题答案揭密
- 6101项目总结
- CSS属性 display 显示属性
- 一个方法最多2个线程同时使用的JAVA实现
- 浅析ethx网卡控制函数ioctl实现具体流程【转】
- ubuntu的温度监控小软件