Re: Small C# program takes up too much memory
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Wed, 21 Feb 2007 18:35:14 +0100
"Chris Mullins [MVP]" <cmullins@xxxxxxxxx> wrote in message news:%23Wk1%237TVHHA.4764@xxxxxxxxxxxxxxxxxxxxxxx
<elty123@xxxxxxxxx> wrote in message:I have a small C# program (about 400 lines of code) that is only 28kb
after compiled.
However when it runs (takes a whole 5 seconds) it takes up nearly 20MB
of memory and I don't see why.
[...]
Is there anyway I can reduce the memory usage?
This is a pretty common problem. Fortunatly there's a pretty easy solution:
http://www.coversant.net/dotnetnuke/Default.aspx?tabid=88&EntryID=4
--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Chris,
you don't want your applications to run under an administrator account just to fake low memory consumption do you?
Note that doing this is much worse than calling GC.Collect in .NET, all it does is disturb the OSses BalanceSet Manager without any benefit for the user.
Willy.
.
- Follow-Ups:
- Re: Small C# program takes up too much memory
- From: Chris Mullins [MVP]
- Re: Small C# program takes up too much memory
- References:
- Small C# program takes up too much memory
- From: elty123
- Re: Small C# program takes up too much memory
- From: Chris Mullins [MVP]
- Small C# program takes up too much memory
- Prev by Date: Re: Strange compile error
- Next by Date: Re: DB connections inside constructors
- Previous by thread: Re: Small C# program takes up too much memory
- Next by thread: Re: Small C# program takes up too much memory
- Index(es):
Relevant Pages
|