Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / February 2004

Tip: Looking for answers? Try searching our database.

huge memory usage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vasil Buraliev - 04 Feb 2004 10:42 GMT
Hallo. I started a solution in VS.NET with template for C# windwos
application. The solution has several projects:
-Artifacts
-BusinessRules
-Client
-ErrorLog
-Standardization
...
..
.
When application is stared you can see only one form with 4 userControls
included on it. Each user control contains:
- toolbas user control : 4 combo controls + 2 buttons
- image user control: kodak image edit control + 6 buttons
- data entry user control: 3 listviewz, 10 buttons, 6 edit controls, 1 combo
- view list control: 1 list view control
and few buttons on form

I don't use unmanaged variables in appilcation so I expect GC to do work for
me and take care about destroing the objects.
When I start that exe assembly I got process in memory for this application
~32MB.
Is this memory usage for this kind of application normal!? For me it's looks
like too much memory. When I load image in kodak control process grows to
~45MB.
Where I'm wrong!? I don't think that tis useage of memory is normal even for
.NET app.
When I minimize app process gets unbelivable 600KB of memory useage. What's
going on!?

Would you help me please and tell me how to limit this 45MB to something
smaller and how to use GC when I use only managed variables!? Should I
derive all Artifacts, Businessruless and Standardization classes from
IDisposable and override Dispose method for all classes which I will call
after I finished with some object from that classes?

regards
Vasko
Michael Giagnocavo [MVP] - 04 Feb 2004 14:34 GMT
Please use Google Groups and search for dotnet memory usage as well as
working set, so you can understand what's going on.

Here's one search:
http://groups.google.com/groups?sourceid=navclient&hl=en&ie=UTF-8&oe=UTF-8&q=dot
net+memory+usage+working+set


You only need dispose if you have unmanaged resources or objects that use
unmanaged resources.  Otherwise it's pointless.

-mike
MVP

> Hallo. I started a solution in VS.NET with template for C# windwos
> application. The solution has several projects:
[quoted text clipped - 34 lines]
> regards
> Vasko
Vasil Buraliev - 04 Feb 2004 15:22 GMT
thanx.

> Please use Google Groups and search for dotnet memory usage as well as
> working set, so you can understand what's going on.
>
> Here's one search:

http://groups.google.com/groups?sourceid=navclient&hl=en&ie=UTF-8&oe=UTF-8&q
=dotnet+memory+usage+working+set

> You only need dispose if you have unmanaged resources or objects that use
> unmanaged resources.  Otherwise it's pointless.
[quoted text clipped - 46 lines]
> > regards
> > Vasko

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.