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

Will memory get over-used?

Some codes instantiate an Arraylist and add many many objects to the list
before the code start to process the items and kill the object. (I assume
this could be a bad approach and I will need to find ways to improve the
design/performance)

But the question is: will this going to kill my system due to memory
overflow or something? I wonder if VB.net is designed to save my Arraylist
"contents" onto virtual memory (disk) once its size reaches certain limit.

Thank you.
Jul 24 '07 #1
4 2070
Tom
I can't vouch for the first question, but the second, i can give a 99%
positive of NO. It won't kill your system. Windows manages the Swap
Memory, not the .Net framework, and so if needed, it will page it (And
increase the page file to the maximum size if it ever got that big!)

ykffc wrote:
Some codes instantiate an Arraylist and add many many objects to the list
before the code start to process the items and kill the object. (I assume
this could be a bad approach and I will need to find ways to improve the
design/performance)

But the question is: will this going to kill my system due to memory
overflow or something? I wonder if VB.net is designed to save my Arraylist
"contents" onto virtual memory (disk) once its size reaches certain limit.

Thank you.
Jul 24 '07 #2
Wel probabaly your app run into an error before the windows max is reached
as an object running on the framework can only use about 2 gig of memory

"ykffc" <yk***@discussions.microsoft.comschreef in bericht
news:65**********************************@microsof t.com...
Some codes instantiate an Arraylist and add many many objects to the list
before the code start to process the items and kill the object. (I assume
this could be a bad approach and I will need to find ways to improve the
design/performance)

But the question is: will this going to kill my system due to memory
overflow or something? I wonder if VB.net is designed to save my
Arraylist
"contents" onto virtual memory (disk) once its size reaches certain limit.

Thank you.

Jul 25 '07 #3

Each *ITEM* in an arraylist is limited to 2GB..

Wel probabaly your app run into an error before the windows max is
reached as an object running on the framework can only use about 2 gig of
memory

>Some codes instantiate an Arraylist and add many many objects to the list
before the code start to process the items and kill the object. (I
assume
this could be a bad approach and I will need to find ways to improve the
design/performance)

But the question is: will this going to kill my system due to memory
overflow or something? I wonder if VB.net is designed to save my
Arraylist
"contents" onto virtual memory (disk) once its size reaches certain
limit.

Jul 25 '07 #4
there is currently a 2GB limit for all CLR objects, no matter what OS
you are running on 32 / 64 bit.
There is also a practical limit, dependent on the current system
conditions, (memory fragmentation ) that limits the growth to the largest
continguous block of memory available.
http://msdn2.microsoft.com/en-us/lib...64(VS.80).aspx
http://blogs.msdn.com/joshwil/archiv...10/450202.aspx
Please not the following even on a 64 bit system the object limit is 2 GB
so
however if the system has enough ram you can alocate multiple objects of 2
gb
on a 32 bit system you cannot allocate full 2 gb so there sure is an
advantage to have a 64 bit system and to compile in 64 bit modus

Michel

"Robert" <no@spam.comschreef in bericht
news:Oe**************@TK2MSFTNGP05.phx.gbl...
>
Each *ITEM* in an arraylist is limited to 2GB..

>Wel probabaly your app run into an error before the windows max is
reached as an object running on the framework can only use about 2 gig of
memory

>>Some codes instantiate an Arraylist and add many many objects to the
list
before the code start to process the items and kill the object. (I
assume
this could be a bad approach and I will need to find ways to improve the
design/performance)

But the question is: will this going to kill my system due to memory
overflow or something? I wonder if VB.net is designed to save my
Arraylist
"contents" onto virtual memory (disk) once its size reaches certain
limit.


Jul 26 '07 #5

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

Similar topics

11
by: BCC | last post by:
Hi, I have a c++ program that creates hundreds of thousands of objects. Eventually, we would like to be able to create millions, but memory is limiting us. For example, 125,000 objects...
1
by: lthompson | last post by:
I have a rather large python application (uses around 40MB of memory to start) that gradually chews up memory over many hours. I've done a little googling around, but it looks like I'm faced with...
11
by: jong | last post by:
I have a problem with an C# application. The application is a 24x7 low volume message processing server. The server has a single thread of processing, running in a continuous loop, for each...
46
by: sbayeta | last post by:
Hi, I'd like to know who is responsible of memory recycling and defragmentation in a C/C++ program, assuming all the memory allocation/deallocation is done using malloc/free or new/delete. ...
9
by: CptDondo | last post by:
I am working on an embedded platform which has a block of battery-backed RAM. I need to store various types of data in this block of memory - for example, bitmapped data for control registers,...
8
by: Fritz | last post by:
.... maybe now that it's a little clearer. Environment: Win Server 2003, :NET Framework 1.1, C# I have an application that polls on a web service method every time a timer event is raised. The...
4
by: Bill Jones | last post by:
I have a very simple little utility program that when started shows about 10meg in Task Manager. I'd like to distribute this program, but I'm certain some semi-savvy users will balk over it's size...
9
by: Anton | last post by:
{Willy Skjveland} Hi, how can I trace a Memory leak in aspnet_wp.exe? {Rheena} One moment please while I search it for you. It may take me a few moments {Willy Skjveland} I need to find out...
74
by: ballpointpenthief | last post by:
If I have malloc()'ed a pointer and want to read from it as if it were an array, I need to know that I won't be reading past the last index. If this is a pointer to a pointer, a common technique...
4
by: David C | last post by:
The w3wp.exe process' memory seems to go from below 200M to over 1G with no warning, causing Memory.Exception. I have searched around and read some answers, and most seem very vague. They say...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
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...

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.