473,416 Members | 1,578 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,416 software developers and data experts.

High Memory Usage ... dont know whats the problem

Hi NG,

first of all i am new to OOP and C# so maybe thats my whole problem :)
i wrote a small timer application, like i did if i was starting with
programming in vb long time ago. the vb application (few years old)
has memory usage around 7.000 K ... my new written C# Application
around 18.000 K. after few operations like minimize to tray and then
reactivate form memory usage rises higher ... i tried to integrate
things like GarbageCollector and turn off things but that didntīt
solve the problem.

Maybe there is someone out there who could take a look at my source (i
will mail it because i cant upload things from my current workplace)
and tell me what iīve done wrong. would be sweet :) so send me a mail
or write down your adress here.

greetings dan
Nov 15 '05 #1
4 2415
Hi,

Most of this is taken by the CLR itself. 18 MB is normal.

Nirosh.

"Dan K." <da****@oxigem.com> wrote in message
news:cf**************************@posting.google.c om...
Hi NG,

first of all i am new to OOP and C# so maybe thats my whole problem :)
i wrote a small timer application, like i did if i was starting with
programming in vb long time ago. the vb application (few years old)
has memory usage around 7.000 K ... my new written C# Application
around 18.000 K. after few operations like minimize to tray and then
reactivate form memory usage rises higher ... i tried to integrate
things like GarbageCollector and turn off things but that didntīt
solve the problem.

Maybe there is someone out there who could take a look at my source (i
will mail it because i cant upload things from my current workplace)
and tell me what iīve done wrong. would be sweet :) so send me a mail
or write down your adress here.

greetings dan

Nov 15 '05 #2
Which version of the .NET do you have?

Older versions had a problem with GC, which has been solved in the latest
one (v1.1, I suppose). And yes - 18MB is normal.

--
Best Regards

Wojciech

Uzytkownik "Dan K." <da****@oxigem.com> napisal w wiadomosci
news:cf**************************@posting.google.c om...
Hi NG,

first of all i am new to OOP and C# so maybe thats my whole problem :)
i wrote a small timer application, like i did if i was starting with
programming in vb long time ago. the vb application (few years old)
has memory usage around 7.000 K ... my new written C# Application
around 18.000 K. after few operations like minimize to tray and then
reactivate form memory usage rises higher ... i tried to integrate
things like GarbageCollector and turn off things but that didntīt
solve the problem.

Maybe there is someone out there who could take a look at my source (i
will mail it because i cant upload things from my current workplace)
and tell me what iīve done wrong. would be sweet :) so send me a mail
or write down your adress here.

greetings dan

Nov 15 '05 #3
thanks for your replies ... yes its the 1.1 version ;(

My Problem is not only the 18mb usage.the increasing memory usage
during the application runtime is the major thing. only small steps of
4-12K of memory but constant ... the value of increasing is different
from the action the application process. if you minimize the app in
systry the memory usage increases by 4 K .. if you hit the icon and
the form returns increase by 12 K ... any idea how to solve this ?

"Wojciech Trelak" <wt***@wp.pl> wrote in message news:<OK**************@TK2MSFTNGP11.phx.gbl>...
Which version of the .NET do you have?

Older versions had a problem with GC, which has been solved in the latest
one (v1.1, I suppose). And yes - 18MB is normal.

--
Best Regards

Wojciech

Nov 15 '05 #4
In most practical applications, you wouldn't have to worry about such
increases. Depending on your process, any memory allocation can happen in
4k chunks. However, in .Net, the garbage collector will kick in when you
run out of memory or when it decides it's time to. So, you are fine.

Just out of curiosity - what kind of app are you writing that requires such
aggressive memory management?

vJ

"Dan K." <da****@oxigem.com> wrote in message
news:cf**************************@posting.google.c om...
thanks for your replies ... yes its the 1.1 version ;(

My Problem is not only the 18mb usage.the increasing memory usage
during the application runtime is the major thing. only small steps of
4-12K of memory but constant ... the value of increasing is different
from the action the application process. if you minimize the app in
systry the memory usage increases by 4 K .. if you hit the icon and
the form returns increase by 12 K ... any idea how to solve this ?

"Wojciech Trelak" <wt***@wp.pl> wrote in message

news:<OK**************@TK2MSFTNGP11.phx.gbl>...
Which version of the .NET do you have?

Older versions had a problem with GC, which has been solved in the latest one (v1.1, I suppose). And yes - 18MB is normal.

--
Best Regards

Wojciech

Nov 15 '05 #5

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

Similar topics

3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
7
by: George Gre | last post by:
Hi, I wrote a c# programme that listens to incoming TCP requests and services them. This programme is meant to be running as long as the server its installed on is running. So we assume for...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
4
by: djc | last post by:
the aspnet_wp.exe process in taking up lots of memory. Right now just the one main page loads and imediately goes to the top of the memory usage list with around 32MB of memory usage. The page only...
1
by: Damien | last post by:
Hi guys, I'm looking for ideas for troubleshooting the following. We've tried some random things to try to treat the symptoms, but none seem robust enough to use when we go live, and we'd rather...
1
by: Pablo Bianco SE | last post by:
Hi everyone, I am new in this group. I have a question and would like to have some support. A customer is experiencing memory problems with the asp.net worker process. The have an application...
2
by: Mechul | last post by:
Hi people i need serious help here.. I have a forum and my hosting company suspended it cuz of the high usage of sql. We did everything to make lower the usage but its still high. it was ...
2
by: Sin Jeong-hun | last post by:
In short, is there any way to know the very code that is currently hogging the CPU? I've written an application which continously GETting web pages using HttpWebRequest's asynchronous methods...
17
by: Cesar | last post by:
Hello people. I'm having a Winform app that contains a webbrowser control that keeps navigating from one page to another permanentrly to make some tests. The problem I'm having is that after a...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.