抛出System.OutOfMemoryException类型的异常 [英] Exception of type System.OutOfMemoryException is thrown

查看:77
本文介绍了抛出System.OutOfMemoryException类型的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几个页面偶尔会开始抛出System.OutOfMemoryException和另一个与存储相关的异常。


在iisreset或终止aspnet_wp.exe工作进程后,问题就消失了。


- 网络服务器上有足够的内存和磁盘空间

- 工作进程很高,但它不占用所有可用内存

- 页面使用远程ServicedComponents

- 我调查了KB - 甚至没有关闭。我们不上传文件,没有VB数组等。页面只是调用执行工作的不同服务器上的组件。


我怎样才能找到这个问题? />

谢谢,


-Stan

There are several pages that occasionally start throwing System.OutOfMemoryException and another exception related to storage.

The problem goes away after iisreset or terminating aspnet_wp.exe worker process.

- There is plenty of memory and disk space on the webserver
- worker process is high, but it does not take all available memory
- pages use remoted ServicedComponents
- I looked into KB - nothing even close. We don''t upload files, no VB arrays, etc. The page simply call the component on the different server that does the work.

How can I find this problem?

Thanks,

-Stan

推荐答案

.net内存分析器是一个很好的起点加上一些好的

放置的perfmon专柜


-

问候,

Alvin Bruney [ASP.NET MVP]

得到花絮?在此处获取...
http://tinyurl.com/3he3b

" Stan" <无**** @ yahoo.com>在消息中写道

news:63 ********************************** @ microsof t.com ...
The .net memory profiler is a good starting point coupled with a few well
placed perfmon counters

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Stan" <no****@yahoo.com> wrote in message
news:63**********************************@microsof t.com...
有几个页面偶尔会抛出
System.OutOfMemoryException以及另一个与存储有关的异常。
在iisreset或终止aspnet_wp之后问题就消失了。 exe worker
进程。
- 网络服务器上有足够的内存和磁盘空间
- 工作进程很高,但它不占用所有可用的内存
- 页面使用远程ServicedComponents
- 我调查了KB - 甚至没有关闭。我们不上传文件,没有VB
数组等。页面只是调用不同服务器上的组件

完成工作。
我怎样才能找到这个问题?

谢谢,

-Stan
There are several pages that occasionally start throwing System.OutOfMemoryException and another exception related to storage.
The problem goes away after iisreset or terminating aspnet_wp.exe worker process.
- There is plenty of memory and disk space on the webserver
- worker process is high, but it does not take all available memory
- pages use remoted ServicedComponents
- I looked into KB - nothing even close. We don''t upload files, no VB arrays, etc. The page simply call the component on the different server that
does the work.
How can I find this problem?

Thanks,

-Stan



嗨Stan,

感谢您在社区中发帖!

从您的描述中,您遇到了某些某些ASP.NET上的System.OutOfMemoryException

以及其他一些相关的异常web
您的Web应用程序中的
页面。此外,这些页面已经调用了某个

远程SErviceComponent,是吗?

如果有任何我误解的地方,请随时告诉我。


至于这个问题,我和Alvin Bruney建议您在ASP.NET工作进程上检查或监视

以查看是否存在

任何异常,尤其是记忆。除了内存

Profiler Alvin Bruney所提到的,这里还有一些其他的方法来监控ASP.NET进程和性能:


#Watching您的服务器进程
http://msdn.microsoft.com/library/en...chserverproces

ses.asp?frame = true


#ASP.NET性能监控,以及何时提醒管理员
http://msdn.microsoft.com/library/en...rf.asp?frame=t

rue


#生成.NET Framework应用程序的调试
http://msdn.microsoft.com/library/en...asp?frame=true


#AS的性能计数器P.NET
http:// msdn .microsoft.com / library / en ... ormanceCounter

sForASPNET.asp?frame = true


另外,我还是觉得远程SeriveComponent是一个潜在的原因。
您是否可以尝试从这些网页暂时删除远程组件的呼叫,以查看问题是否消失?或者你会请

在某个页面上提供一些进一步的描述,这些页面调用遥控器的
组件或远程SErviceComponent上的一些信息?


请查看以上项目。如果您有任何进一步的帮助,请

随时在此发布。


问候,


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)


在ASP.NET上获取预览whidbey
< a rel =nofollowhref =http://msdn.microsoft.com/asp.net/whidbey/default.aspxtarget =_ blank> http://msdn.microsoft.com/asp.net/whidbey /default.aspx


------------------------------ -------------------------------------------
Hi Stan,
Thanks for posting in the community!
From your description, you encountered the "System.OutOfMemoryException"
and some other related exceptions occassionally on some certain ASP.NET web
pages in your web application. Also, these pages have called a certain
remote SErviceComponent, yes?
If there is anything I misunderstood, please feel free to let me know.

As for this problem, I agee with Alvin Bruney''s suggestion that you have a
check or monitor on your ASP.NET worker process to see whether there is
anything abnormal on it, especially the memory. In addition to the Memory
Profiler Alvin Bruney has mentioned, here are some other approaches on
monitor ASP.NET process and performance:

#Watching Your Server Processes
http://msdn.microsoft.com/library/en...chserverproces
ses.asp?frame=true

#ASP.NET Performance Monitoring, and When to Alert Administrators
http://msdn.microsoft.com/library/en...rf.asp?frame=t
rue

#Production Debugging for .NET Framework Applications
http://msdn.microsoft.com/library/en...asp?frame=true

#Performance Counters for ASP.NET
http://msdn.microsoft.com/library/en...ormanceCounter
sForASPNET.asp?frame=true

In addtion, I still feel the remote SeriveComponent is a potential cause.
Would you please try temporarily remove the remote Component''s calling from
those web pages to see whether the problem goes away? Or would you please
provide some further descriptions on a certain page which calls the remote
component or some infos on the remote SErviceComponent?

Please check out the above items. If you meet any further assitance, please
feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

-------------------------------------------------------------------------


您好Stan,

您是否有机会查看我的建议或者您有任何进一步的进展

问题?如果您需要任何进一步的帮助,请

随时在这里发布。


问候,


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)


在ASP.NET上获取预览whidbey
< a rel =nofollowhref =http://msdn.microsoft.com/asp.net/whidbey/default.aspxtarget =_ blank> http://msdn.microsoft.com/asp.net/whidbey /default.aspx

Hi Stan,
Have you had a chance to check out my suggestions or have you got any
further progress on this issue? If you need any further assistance, please
feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


这篇关于抛出System.OutOfMemoryException类型的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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