aspnet_wp.exe内存问题 [英] aspnet_wp.exe memory problem

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

问题描述




我有aspnet_wp.exe,每次回发都会增加,而不是每次重新访问

到任何页面。即使我清除会话并关闭浏览器,它仍保留在

内存中。我只有一个连接对象,它总是被关闭,因为我在try catch下有它b $ b,而我所有的变量都放在每个

函数的末尾。可能是什么问题?


问候,

Vineet


解决方案

这是正常行为,除非它导致你出现问题。

..Net通常会增长并增长直到垃圾收集来清理它

up。


" EDom" < TE ******* @ peoplewareindia.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我的aspnet_wp.exe在每次回发时都会增加,而不是每次都重新访问任何页面。即使我清除会话并关闭浏览器,它仍保留在
内存中。我只有一个连接对象,它总是关闭,因为我在try catch下有它,所有变量都放在每个
函数的末尾。可能是什么问题?

问候,
Vineet



你可以强制收藏使用GC.Collect()方法。但是你不应该在大多数时候需要这么多。



" Jon" <乔******* @ nusystems.com.au>在消息中写道

news:uk ************** @ TK2MSFTNGP12.phx.gbl ...

这是正常行为,除非它引起你的问题。
.Net通常会增长并增长,直到垃圾收集来清理它。

EDom < TE ******* @ peoplewareindia.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我的aspnet_wp.exe在每次回发时都会增加,而不是每次都重新访问任何页面。即使我清除会话并关闭浏览器,它仍保留在
内存中。我只有一个连接对象,它总是关闭,因为我在try catch下有它,所有变量都放在每个
函数的末尾。可能是什么问题?

问候,
Vineet




如果有其他需要更多内存的应用程序,GC只会打印内存。如果

有足够的可用空间,它就不会释放内存。

http://blogs.msdn.com/ricom/archive/...29/271829.aspx

Mr Newbie <他** @ now.com>在消息中写道

新闻:uC ************** @ TK2MSFTNGP14.phx.gbl ...

你可以强制收集使用GC.Collect()方法。但是你应该在大多数时候不需要这个。


Jon <乔******* @ nusystems.com.au>在消息中写道
新闻:uk ************** @ TK2MSFTNGP12.phx.gbl ...

这是正常行为,除非造成你有问题。
.Net通常会成长并增长,直到垃圾收集来清理它。

EDom < TE ******* @ peoplewareindia.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我的aspnet_wp.exe在每次回发时都会增加,而不是每次都重新访问任何页面。即使我清除会话并关闭浏览器,它仍保留在
内存中。我只有一个连接对象,它总是关闭,因为我在try catch下有它,所有变量都放在每个
函数的末尾。可能是什么问题?

问候,
Vineet





Hi,

I have aspnet_wp.exe with increasing on every postback and not every revisit
to any page. Even if I clear session and close the browser it remains in the
memory. I have only one connection object and it is closed always as I have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet


解决方案

This is normal behaviour, unless it is causing you a problem.
..Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peoplewareindia.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I have aspnet_wp.exe with increasing on every postback and not every
revisit
to any page. Even if I clear session and close the browser it remains in
the
memory. I have only one connection object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet



You can force a collection with the GC.Collect() Method. But you should not
need this most of the time.


"Jon" <jo*******@nusystems.com.au> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...

This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peoplewareindia.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I have aspnet_wp.exe with increasing on every postback and not every
revisit
to any page. Even if I clear session and close the browser it remains in
the
memory. I have only one connection object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet




GC only fress memory if there are other apps which needs more memory. If
there is enough free space it will not free memory.

http://blogs.msdn.com/ricom/archive/...29/271829.aspx
"Mr Newbie" <he**@now.com> wrote in message
news:uC**************@TK2MSFTNGP14.phx.gbl...

You can force a collection with the GC.Collect() Method. But you should
not need this most of the time.


"Jon" <jo*******@nusystems.com.au> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...

This is normal behaviour, unless it is causing you a problem.
.Net usually grows and grows until garbage collection comes and cleans it
up.

"EDom" <te*******@peoplewareindia.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I have aspnet_wp.exe with increasing on every postback and not every
revisit
to any page. Even if I clear session and close the browser it remains in
the
memory. I have only one connection object and it is closed always as I
have
it under try catch, and all my variables are disposed at the end of each
function. What could be the issue??

Regards,
Vineet





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

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