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

Menmorymanagement

Hi all

according to the taskmanager my vb.net application grows continually in memory usage. Obviously the memory used by mdi children and SqlConnections and/or DataTables which are closed is not released. Even the close-event (Me.Close) of an mdi-child needs approx 500 kb (sometimes more sometimes less). dispose or the manual calling of the garbage collector has no effect
Are there any settings concerning the garbage collector or any other possibilities to release memory manulally

Thank you in advance
Thorsten
Jul 21 '05 #1
12 1281
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor
Jul 21 '05 #2
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor
Jul 21 '05 #3
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor


Unfortunately, users will. Are there any plans you know of to correct this
problem?

Steve
Jul 21 '05 #4
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor


Unfortunately, users will. Are there any plans you know of to correct this
problem?

Steve
Jul 21 '05 #5
The values shown by the taskmanager are correct, these are the same values
as presented by the performance manage (perfmon) and are the values taken
from the various OS perfcounters.
The only problem is that taskmanager's memory counter names are not the same
as used in perfmon, and this confuses people, but the values are correct,
also the number of counters is very restricted, therefore you should use
perfmon for diagnosing memory problems.
f.i 'Mem usage' is in reality the 'Working Set' and 'VM Size' is 'Private
Bytes'.
Willy.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor

Jul 21 '05 #6
The values shown by the taskmanager are correct, these are the same values
as presented by the performance manage (perfmon) and are the values taken
from the various OS perfcounters.
The only problem is that taskmanager's memory counter names are not the same
as used in perfmon, and this confuses people, but the values are correct,
also the number of counters is very restricted, therefore you should use
perfmon for diagnosing memory problems.
f.i 'Mem usage' is in reality the 'Working Set' and 'VM Size' is 'Private
Bytes'.
Willy.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
Hi Thorsten,

When you search the dotnet newsgroup about taskmanager and memory than you
will see only one response.

Do not trust the memory which it reported by taskmanager with dotNet
programs.

I hope this helps?

Cor

Jul 21 '05 #7
Hi Willy,

Do you know who wrote this.

http://tinyurl.com/2oc9a

:-)

Cor
Jul 21 '05 #8
Hi Willy,

Do you know who wrote this.

http://tinyurl.com/2oc9a

:-)

Cor
Jul 21 '05 #9
Hi Cor,
Sure, I did, but IMO I didn't say the taskmanager's counters were wrong, I
only said you need to use the perfmon counters if you need a consistent view
of the CLR memory counters. The taskmanager's has only very basic (but
correct) process memory counters (Working Set and Private Bytes), and no CLR
counters.
Also note that taskman is an end user tool, and MSFT thought they should
change the names of the counters into something that an average user would
understand ('Mem usage' and 'VM Size).
I for one wished taskman had an expert mode or did not show these counters
as they tend to confuse people.

Willy.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Willy,

Do you know who wrote this.

http://tinyurl.com/2oc9a

:-)

Cor

Jul 21 '05 #10
Hi Cor,
Sure, I did, but IMO I didn't say the taskmanager's counters were wrong, I
only said you need to use the perfmon counters if you need a consistent view
of the CLR memory counters. The taskmanager's has only very basic (but
correct) process memory counters (Working Set and Private Bytes), and no CLR
counters.
Also note that taskman is an end user tool, and MSFT thought they should
change the names of the counters into something that an average user would
understand ('Mem usage' and 'VM Size).
I for one wished taskman had an expert mode or did not show these counters
as they tend to confuse people.

Willy.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Willy,

Do you know who wrote this.

http://tinyurl.com/2oc9a

:-)

Cor

Jul 21 '05 #11
Hi Willy,

That was all I did wanted to say in my first messsage to the OP, do not
trust on the taskmanager when you make your decissions about memory use.

Cor
Jul 21 '05 #12
Hi Willy,

That was all I did wanted to say in my first messsage to the OP, do not
trust on the taskmanager when you make your decissions about memory use.

Cor
Jul 21 '05 #13

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

Similar topics

12
by: Thorsten | last post by:
Hi all according to the taskmanager my vb.net application grows continually in memory usage. Obviously the memory used by mdi children and SqlConnections and/or DataTables which are closed is not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.