Application Memory Usage

  • Thread starter Thread starter Christo.Boysen
  • Start date Start date
C

Christo.Boysen

Good afternoon all i am currently battling with memory usage of my
..NET applications. A simple form with 2 text boxes, 3 command buttons
use approx 8MB of RAM, though when compiled the exe is about 28KB. I
am developing solutions primarily for terminal server environments and
i cannot afford my applications to use this much memory. Can anybody
tell me why i am using so much RAM?

Kind Regards
 
Christo.Boysen said:
Good afternoon all i am currently battling with memory usage of my
.NET applications. A simple form with 2 text boxes, 3 command buttons
use approx 8MB of RAM, though when compiled the exe is about 28KB. I
am developing solutions primarily for terminal server environments and
i cannot afford my applications to use this much memory. Can anybody
tell me why i am using so much RAM?

..NET applications will typically load some huge libraries like
"System.Windows.Forms.dll" etc., and the CLR must be loaded too in order to
execute the application. The high memory usage is "typical" for .NET
applications.
 
Herfried, is it true that starting a second .net application will use a lot
less memory since the same code in memory is used for the .Net Framework
classes and CLR and only the variables of the classes, etc. are duplicated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top