System.OutOfMemoryException Error

C

Chandra

I have a web server with Windows 2000 OS installed on it
and it has 3 gigabytes (GB) of RAM and 4GB of VM.
Application used is ASP.Net.

Recently we faced "System.OutOfMemoryException" Error and
when I searched MS Knowledge Base I found an article
#820108. In the article it has been mentioned to turn on
the special feature 4GT RAM Tuning by adding the /3GB
switch to the Boot.ini file. I am curious to know if I
add the /3GB switch to the Boot.ini file will it affect
the server or the application, as 3GB of VM will be
allocated to the application and 1GB of VM will be left
for the kernel.

Please let me know the complications after adding the /3GB
switch to the Boot.ini file.

Thanks in Advance....
 
J

Jason Hall [MSFT]

--------------------
Sender: "Chandra" <[email protected]>
Subject: System.OutOfMemoryException Error
Date: Thu, 22 Apr 2004 08:32:47 -0700

I have a web server with Windows 2000 OS installed on it
and it has 3 gigabytes (GB) of RAM and 4GB of VM.
Application used is ASP.Net.

Recently we faced "System.OutOfMemoryException" Error and
when I searched MS Knowledge Base I found an article
#820108. In the article it has been mentioned to turn on
the special feature 4GT RAM Tuning by adding the /3GB
switch to the Boot.ini file. I am curious to know if I
add the /3GB switch to the Boot.ini file will it affect
the server or the application, as 3GB of VM will be
allocated to the application and 1GB of VM will be left
for the kernel.

Please let me know the complications after adding the /3GB
switch to the Boot.ini file.

Thanks in Advance....
----------------------

Hello Chandra,

As you already know, the caveat to giving a process 1GB of addressable
memory by adding the /3GB switch means robbing the kernel of that memory.
This is more than enough memory to load the operating system and the
required drivers.
The thing you need to watch out for is available PTE's (Free System Page
Table Entries in the Memory object of Performance Monitor). You need free
PTE's for the operating system to write pages to the page file. If you run
out of free PTE's, your machine will "bluescreen", so you need to be aware
of this value. Of course, increasing your physical memory will reduce the
need for paging, and thus the need for PTE's.
To sum up: Yes, there is a risk to the basic performance of the operating
system, but monitoring Free PTE's will help you to avoid any issues.

Check out KB article 311901: "The Effects of 4GT Tuning on System Page
Table Entries" for more information

--
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no
rights.
~ Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
~ Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top