473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Application Memory Usage

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
Nov 21 '05 #1
6 1401
"Christo.Boysen" <ch*************@gmail.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
"Christo.Boysen" <ch*************@gmail.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Christo,

This article, "The Memory Mystery" may help:

http://getdotnetco.web101.discountas...%20Mystery.htm

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Christo.Boysen" <ch*************@gmail.com> wrote in message
news:1c**************************@posting.google.c om...
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

Nov 21 '05 #4
Christo,

This article, "The Memory Mystery" may help:

http://getdotnetco.web101.discountas...%20Mystery.htm

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Christo.Boysen" <ch*************@gmail.com> wrote in message
news:1c**************************@posting.google.c om...
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

Nov 21 '05 #5
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.

"Herfried K. Wagner [MVP]" wrote:
"Christo.Boysen" <ch*************@gmail.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
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.

"Herfried K. Wagner [MVP]" wrote:
"Christo.Boysen" <ch*************@gmail.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tux | last post by:
I dispose and set to null JFrame, also JPanels of my application set to null and everything create again. The memory usage of my application grows every time I do that. Why?
1
by: Arie | last post by:
The question is: I would like to know how to reduce my dot.net application memory usage, I have already tried to the SetProcessWorkingSetSize method with reduced the memory in 7MB, but that’s...
2
by: sean | last post by:
Hi, I notice if I run my application, the Windows Task Manager shows the application using around 20MB of memory. However, after I minimized the application and maximize/restore the...
4
by: Ethan Chan | last post by:
I have recently been deploying a asp.net extranet application. The asp.net worker process starts off with 30MB virtual memory and then upon serving a few pages, the memory usage increases to a...
4
by: Crirus | last post by:
I have an aplication (obviously :)) I look at the Task Manager, memory usage column and notice the following: First time I start the application, I have around 55.000- 60.000 K. After I minimise...
1
by: Sin Jeong-hun | last post by:
We can easily see the application's memory usage at the Task Manager. Usually .NET Applications seem to consume a lot of memory. But I've heard that this is so-called _working set_. Does this means...
22
by: roadrunner | last post by:
Hi, Our website has recently been experiencing some problems under load. We have pinpointed a particular function which slows dramatically when we have these problems. Normally it should execute...
3
by: san | last post by:
we cannot stop the application from increasingly use memory. The CRM Worker process will continually consume memory but not release it back to the system. Please research into how to make the...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.