473,666 Members | 2,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 GarbageCollecto r 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 2429
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.goo gle.com...
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 GarbageCollecto r 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.goo gle.com...
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 GarbageCollecto r 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******* *******@TK2MSFT NGP11.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.goo gle.com...
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******* *******@TK2MSFT NGP11.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
4135
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 periodically. What happens, is that the app reads the contents of a text file line by line into an ArrayList. Each element of the ArrayList is a string representing a record from the file. The ArrayList is then processed, and the arraylist goes out of...
7
5185
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 ever(!). My problem is that I have it running for 2 days now on my pc (win2Ksp3 P4 2GHz,512MB Ram - framework v1.0.3705) and the taskmanager reports that this process takes 97MB ram/130 VMemory and it looks that its eating up more ram(!!). To help...
20
4215
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 memory usage drops to a couple hundred KB. Why? Is there anything I should to to prevent this? I have compiled in release and deactivated all forms of debugging, I think! Thanks, Philip
4
1929
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 contains 1 datagrid that IS using default paging and sorting capabilities. I am using 2 viewstate variables to keep track of field and direction info for sorting so that the columns sort asc then desc on second click etc... As far as the data for...
1
4843
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 discover the root cause: We've got an ASP.NET application, running on framework 1.1 on Windows 2003 (IIS 6). Under default settings, during testing by two users, we're seeing the CPU usage on w3wp.exe rocket up and stay up (and thus cause web...
1
4899
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 installed on Windows 2003 Server (IIS6). We the application starts the worker process ocuppies about 70MB, but it keeps growing gradually during users activity. In just few hours (about 4 hours) it can reach 800 MB, making the application not being...
2
1598
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 Generated in 2.0792990 seconds (18.30% PHP / 50-80 % MySQL) MySQL Queries:152 / Global Parsing Time: 0.4743950 / Memory Usage: 4.01 MB PHP version: 4.4.4 / Server Load: Bilinmeyen / GZip Compression: Enabled
2
2333
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 (it only GETs responses (BegingGetResponse,EndGetResponse), not reads the stream contents). I've read articles about asynchronous request operations. I aborted timed out requests based on the article. ( http://www.developerfusion.co.uk/show/4654/ )...
17
7952
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 while, the application is using more than 100 or 150 Mb in RAM, and if I let it continue, it can leave the system without memory. I've been watching in some pages that other people has the same problem with this control when keep navigating for a...
0
8352
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7378
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.