我怀疑内存泄漏!! [英] I suspect memory leak !!

查看:72
本文介绍了我怀疑内存泄漏!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在AS中有一个Web应用程序。它还使用COM +和SQL Server作为后端。


有时dllhost.exe的大小会出乎意料地增长。这样我们就可以重新启动我们的IIS / PWS。当我们重新启动网络服务器时,只有一个dllhost运行实例

但稍后我们注意到多个实例

有时候。


请建议。


We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we
restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance
sometimes.

Please suggest.


推荐答案

你的一个COM对象正在造成它。


检查你是否在课堂上清理。即。关闭对象和数据库

连接等

并进行适当的错误捕获以避免无限循环等。


dllhost的许多实例不是真的有问题,但COM内部不整齐的代码

对象肯定会让他们咀嚼内存


新手 < ab*@pqr.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...
one of your COM objects is causing it.

check that you clean up in your classes. ie. close objects and db
connections etc.
and do proper error trapping to avoid endless loops etc.

many instances of dllhost isn''t really a problem, but untidy code inside COM
objects will definitely cause them to munch memory

"Newbie" <ab*@pqr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
我们有AS中的Web应用程序。它还使用COM +和SQL Server作为后端。

有时dllhost.exe的大小会意外增长。这是我们重新启动IIS / PWS的
。当我们重新启动网络服务器时,只有一个dllhost运行实例
但有时我们会注意到多个
实例。

请建议。
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance sometimes.

Please suggest.



这个问题几乎肯定是由你介绍给

系统引起的。我从来没有见过dllhost.exe变得疯狂,除非在那些情况下,

是一个流氓组件,一个无限循环,未闭合的对象或一个MDAC版本

迫切需要一个升级。请查看 http://www.aspfaq.com/2227
< br $>
-

Aaron Bertrand

SQL Server MVP
http://www.aspfaq.com/


" Newbie" < ab*@pqr.com>在消息中写道

新闻:#a ************** @ TK2MSFTNGP12.phx.gbl ...
The problem is almost certainly caused by something you introduced to the
system. I have never seen dllhost.exe go crazy except in cases where there
is a rogue component, an infinite loop, unclosed objects or an MDAC version
in desperate need of an upgrade. Please review http://www.aspfaq.com/2227

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Newbie" <ab*@pqr.com> wrote in message
news:#a**************@TK2MSFTNGP12.phx.gbl...
我们有一个网络在AS中的应用。它还使用COM +和SQL Server作为后端。

有时dllhost.exe的大小会意外增长。这是我们重新启动IIS / PWS的
。当我们重新启动网络服务器时,只有一个dllhost运行实例
但有时我们会注意到多个
实例。

请建议。
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance sometimes.

Please suggest.



几乎可以肯定 ?


我们最近在Analysis Services中诊断出一个严重的内存泄漏,即
导致我们的DLLHOST进程最终失败。我记得在MSDN指南中使用

例外隐含地建议所有内存

问题是由于客户的设计/编程错误造成的。


Tony Proctor


" Aaron Bertrand - MVP" < AA *** @ TRASHaspfaq.com>在留言中写道

新闻:eQ ************* @tk2msftngp13.phx.gbl ...
"almost certainly" ?

We recently diagnosed a serious memory leak in Analysis Services that was
causing our DLLHOST processes to eventually fail. I remember taking
exception to the MSDN guidelines that implicitly suggested all memory
problems were due to design/programming errors by the customer.

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
问题几乎肯定是造成的通过你介绍给
系统的东西。我从来没有见过dllhost.exe疯狂,除非在
的情况下有一个流氓组件,一个无限循环,未关闭的对象或一个迫切需要升级的MDAC
版本。请查看 http://www.aspfaq.com/2227

-
Aaron Bertrand
SQL Server MVP
http ://www.aspfaq.com/


新手 < ab*@pqr.com>在消息中写道
新闻:#a ************** @ TK2MSFTNGP12.phx.gbl ...
The problem is almost certainly caused by something you introduced to the
system. I have never seen dllhost.exe go crazy except in cases where there is a rogue component, an infinite loop, unclosed objects or an MDAC version in desperate need of an upgrade. Please review http://www.aspfaq.com/2227

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Newbie" <ab*@pqr.com> wrote in message
news:#a**************@TK2MSFTNGP12.phx.gbl...
我们在AS中有一个Web应用程序。它还使用COM +和SQL Server作为后端。

有时dllhost.exe的大小会意外增长。我们
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such
重启我们的IIS / PWS就是这样的

that we


。当我们重新启动网络服务器时,只有一个dllhost运行实例
但稍后我们会注意到多个

restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one


实例

有时。

请建议。
sometimes.

Please suggest.




这篇关于我怀疑内存泄漏!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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