Re: Virtual Memory Leak? What's goin' on?
From: Welman Jordan (_nospam_wmjordan_at_163.com)
Date: 02/20/04
- Next message: Sherif ElMetainy: "Re: .NET Remoting is slow!! Alternatives??"
- Previous message: john: "RE: Virtual Memory Leak? What's goin' on?"
- In reply to: john: "RE: Virtual Memory Leak? What's goin' on?"
- Next in thread: MS support: "Virtual Memory Leak? What's goin' on?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 08:39:38 +0800
John,
Thanks for your reply.
It seems that it is because I am debugging applications on the server.
The non-debugged applications are quite running normally. "% GC
Time" is fairly low on my machine if I do not debug on it.
I think that I am not doing well that I did not use "using" when creating
some objects which should be Disposed later. Even though I have
try...catch...finally statements to ensure memory is released. Actually
if I debug, some exceptions are not "expected", so there may be
chances that some objects created fail to be disposed.
Jordan
"john" <anonymous@discussions.microsoft.com> wrote in message
news:2BA03E88-F69F-4402-935F-EB6C1CE91D77@microsoft.com...
> We had a similar problem. Use PerfMon and watch your '% GC Time' metric
under the .Net Memory category. If its up around or above 30% your problem
may be that you are creating too many objects.
>
> We found that databound grids and data lists, and repeater controls were
creating so many objects that our GC was running 35% of the asp_net
process's time.
>
> we took out all asp.net controls and our % GC Time dropped to about 1% and
the pages were several times faster.
- Next message: Sherif ElMetainy: "Re: .NET Remoting is slow!! Alternatives??"
- Previous message: john: "RE: Virtual Memory Leak? What's goin' on?"
- In reply to: john: "RE: Virtual Memory Leak? What's goin' on?"
- Next in thread: MS support: "Virtual Memory Leak? What's goin' on?"
- Messages sorted by: [ date ] [ thread ]