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

2GB memory limit

Dear Sirs,

I have developed a VB .Net windows application, but unfortunately when I
this application tries to use more than 2GB memory it fails although there
is available 4GB of memory on the machine. How may I allocate more virtual
memory to be used by the application or extend this limit?

Regards,
Yahya
Nov 21 '05 #1
6 12628
"Yahya" <x@x.x> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
Dear Sirs,

I have developed a VB .Net windows application, but unfortunately when
I
this application tries to use more than 2GB memory it fails although there
is available 4GB of memory on the machine. How may I allocate more virtual
memory to be used by the application or extend this limit?


The amount of RAM on the machine is irrelevant. Your application uses
virtual memory which is paged from disk to RAM by the OS.

On 32-bit windows you have a 4gig virtual address space which divided into
2gigs for user-mode code, and 2gigs for kernel-mode code. So your
application (which runs in user-mode) can only access the bottom 2gigs of
the address space.

On 64bit windows, native 64-bit apps (which you can't write with .NET 1.1)
have a very large address space. 32-bit apps running on 64bit windows in the
Windows On Windows64 environment still have a 4gig address space, but since
all no kernel-mode code can run in 32-bit mode, you can use the whole 4gig
address space.

But seriously, why are you using so much memory?

David
Nov 21 '05 #2
Yahya,
In addition to David's comments.

..NET 2.0 (VS.NET 2005, aka Whidbey, due out later in 2005) supports both a
32-bit CLR & a 64-bit CLR.

http://lab.msdn.microsoft.com/vs2005/

I don't know what the memory limit on the 64-bit CLR is going to be, however
I would expect it to be significantly more then either 2GB or 4GB.

Of course the 2.0 64-bit CLR will require a 64-bit version of the OS (XP Pro
or 2003) as well as a 64-bit CPU.

Hope this helps
Jay
"Yahya" <x@x.x> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
| Dear Sirs,
|
| I have developed a VB .Net windows application, but unfortunately when
I
| this application tries to use more than 2GB memory it fails although there
| is available 4GB of memory on the machine. How may I allocate more virtual
| memory to be used by the application or extend this limit?
|
| Regards,
| Yahya
|
|
Nov 21 '05 #3
I am using such a large amount or memory since this application is copying
large mail items between public folders on a machine which is also running
exchange 2003 that is taking alone the minimum of 1GB.

But I still didn't understand how can I make use of the whole 4GB of memory.

Thank you,
Yahya

"David Browne" <davidbaxterbrowne no potted me**@hotmail.com> wrote in
message news:eL**************@TK2MSFTNGP12.phx.gbl...
"Yahya" <x@x.x> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
Dear Sirs,

I have developed a VB .Net windows application, but unfortunately when I
this application tries to use more than 2GB memory it fails although there is available 4GB of memory on the machine. How may I allocate more virtual memory to be used by the application or extend this limit?

The amount of RAM on the machine is irrelevant. Your application uses
virtual memory which is paged from disk to RAM by the OS.

On 32-bit windows you have a 4gig virtual address space which divided into
2gigs for user-mode code, and 2gigs for kernel-mode code. So your
application (which runs in user-mode) can only access the bottom 2gigs of
the address space.

On 64bit windows, native 64-bit apps (which you can't write with .NET 1.1)
have a very large address space. 32-bit apps running on 64bit windows in

the Windows On Windows64 environment still have a 4gig address space, but since all no kernel-mode code can run in 32-bit mode, you can use the whole 4gig
address space.

But seriously, why are you using so much memory?

David

Nov 21 '05 #4
"Yahya" <x@x.x> wrote in message
news:eH**************@TK2MSFTNGP15.phx.gbl...
I am using such a large amount or memory since this application is copying
large mail items between public folders on a machine which is also running
exchange 2003 that is taking alone the minimum of 1GB.
How exactly is this copying being done? Can you not chunk the copy?
But I still didn't understand how can I make use of the whole 4GB of
memory.


You can't. To paraphrase David this would only be available on a 64-bit
machine running a 64-bit version of Windows and .NET 2.0, which has not yet
been released. The limit for standard Win32 applications is 2GB.

--
Sean Hederman

http://www.codingsanity.com
Nov 21 '05 #5
Yahya,
| But I still didn't understand how can I make use of the whole 4GB of
memory.

As David, Sean, and I have stated you cannot per se until .NET 2.0 64-Bit
edition.

Depending on which server you are running, you can enable .NET 1.1 to use
3GB if your server OS supports it. For details start with "/3GB switch" at:

http://msdn.microsoft.com/library/de...netchapt17.asp

| I am using such a large amount or memory since this application is copying
| large mail items between public folders on a machine which is also running
| exchange 2003 that is taking alone the minimum of 1GB.
I would review the algorithm I was using to copy the data to see if there
was one that did not require such high memory requirements. Such as reading
& writing 1M chunks at a time.

Hope this helps
Jay
"Yahya" <x@x.x> wrote in message
news:eH**************@TK2MSFTNGP15.phx.gbl...
|I am using such a large amount or memory since this application is copying
| large mail items between public folders on a machine which is also running
| exchange 2003 that is taking alone the minimum of 1GB.
|
| But I still didn't understand how can I make use of the whole 4GB of
memory.
|
| Thank you,
| Yahya
|
| "David Browne" <davidbaxterbrowne no potted me**@hotmail.com> wrote in
| message news:eL**************@TK2MSFTNGP12.phx.gbl...
| > "Yahya" <x@x.x> wrote in message
| > news:ec**************@TK2MSFTNGP14.phx.gbl...
| > > Dear Sirs,
| > >
| > > I have developed a VB .Net windows application, but unfortunately
| when
| > > I
| > > this application tries to use more than 2GB memory it fails although
| there
| > > is available 4GB of memory on the machine. How may I allocate more
| virtual
| > > memory to be used by the application or extend this limit?
| > >
| >
| > The amount of RAM on the machine is irrelevant. Your application uses
| > virtual memory which is paged from disk to RAM by the OS.
| >
| > On 32-bit windows you have a 4gig virtual address space which divided
into
| > 2gigs for user-mode code, and 2gigs for kernel-mode code. So your
| > application (which runs in user-mode) can only access the bottom 2gigs
of
| > the address space.
| >
| > On 64bit windows, native 64-bit apps (which you can't write with .NET
1.1)
| > have a very large address space. 32-bit apps running on 64bit windows in
| the
| > Windows On Windows64 environment still have a 4gig address space, but
| since
| > all no kernel-mode code can run in 32-bit mode, you can use the whole
4gig
| > address space.
| >
| > But seriously, why are you using so much memory?
| >
| > David
| >
| >
|
|
Nov 21 '05 #6
Tch. Nobody with any memories of 64K limits?
"Yahya" <x@x.x> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
Dear Sirs,

I have developed a VB .Net windows application, but unfortunately when I this application tries to use more than 2GB memory it fails although there
is available 4GB of memory on the machine. How may I allocate more virtual
memory to be used by the application or extend this limit?

Regards,
Yahya

Nov 21 '05 #7

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

Similar topics

0
by: Zac | last post by:
I've been googling all day and I haven't seen anyone else having this problem, so I thought I'd check to see if I'm unique or I should be expecting this behavior. I've recompiled and reinstalled...
4
by: Frank Esser | last post by:
I am using SQL 8 Personal edition with sp2 applied. I set the max server memory to 32MB and leave the min server memory at 0. When my application starts hitting the database hard the memory usage...
7
by: Jon Trickey | last post by:
We migrated to 8.1 from 7.2 this weekend. Everything ran ok over the weekend, but we have a light user load then (about 200 users.) Today when we had close to 600 users connecting and running...
0
by: Tomas | last post by:
I have two questions: (1) How (if possible) can you, with ASP.NET (and with the IIS 5 included with win2000) specify an maximum limit of the memory that a web application may consume, as an...
3
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the...
13
by: kolmogolov | last post by:
/* Hi, I have removed things irrelevant to reproducing the problem. What's wrong with my code? Thanks in advance for any hint! 1166425362 */ #include <stdio.h> #include <stdlib.h> #include...
1
by: =?Utf-8?B?TWFyY28gU2VsbGFuaQ==?= | last post by:
I need an information. I've a ASP.NET web application on windows2003r2 server with IIS 6. In framework 1.0 memory limit for a worker process is 800MB; in framework 1.1 the limit is 1600MB with...
17
by: frederic.pica | last post by:
Greets, I've some troubles getting my memory freed by python, how can I force it to release the memory ? I've tried del and gc.collect() with no success. Here is a code sample, parsing an XML...
12
by: bomahony | last post by:
Im runnign various versions of DB2 on various UNIX platforms (Solaris / AIX). DB2 is generally eating up about 30% of memory on these systems (4Gb of RAM, which equates to over a gig). i want to...
5
by: Max2006 | last post by:
Hi, What is the limit for memory that a .NET process or AppDomain can use? Thank you, Max
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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.