473,394 Members | 1,742 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.

System.OutOfMemoryException

Hi,

We have an application using .NET framework 1.1 and SQL Server 2000. The
application seems to be running very well until we get an OutOfMemory error.
The computer has enough memory, in fact, when the error takes place there
are 2 GB available in physical memory.
Some days ago, we have a limitation in memory for DefaultAppPool of 1,5 GB
before recycling.This made the session information be lost quite often, so,
we decided to increase the limitation to 3GB and then, we got the
OutOfMemory error, although our server has 8GB of physical memory and only
3GB is used by SQL Server. Now we have the Maximum used memory (in
megabytes) to 2100.
Do you have any clue about why we have memory problems when there are 2GB of
physical memory available?

Thank you very much,
Any guidance will be appreciated.
Nov 16 '06 #1
4 2016
A common source of memory problems is not closing database connections.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Carmen" <quitaresto@cp*******@fcc.es@quitarestowrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

We have an application using .NET framework 1.1 and SQL Server 2000. The
application seems to be running very well until we get an OutOfMemory
error. The computer has enough memory, in fact, when the error takes place
there are 2 GB available in physical memory.
Some days ago, we have a limitation in memory for DefaultAppPool of 1,5 GB
before recycling.This made the session information be lost quite often,
so, we decided to increase the limitation to 3GB and then, we got the
OutOfMemory error, although our server has 8GB of physical memory and only
3GB is used by SQL Server. Now we have the Maximum used memory (in
megabytes) to 2100.
Do you have any clue about why we have memory problems when there are 2GB
of physical memory available?

Thank you very much,
Any guidance will be appreciated.

Nov 16 '06 #2
unless your running 64 bit or 32bit with the 3gb switch, 2gb is the max you
can set the memory to.

-- bruce (sqlwork.com)

"Carmen" <quitaresto@cp*******@fcc.es@quitarestowrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

We have an application using .NET framework 1.1 and SQL Server 2000. The
application seems to be running very well until we get an OutOfMemory
error. The computer has enough memory, in fact, when the error takes place
there are 2 GB available in physical memory.
Some days ago, we have a limitation in memory for DefaultAppPool of 1,5 GB
before recycling.This made the session information be lost quite often,
so, we decided to increase the limitation to 3GB and then, we got the
OutOfMemory error, although our server has 8GB of physical memory and only
3GB is used by SQL Server. Now we have the Maximum used memory (in
megabytes) to 2100.
Do you have any clue about why we have memory problems when there are 2GB
of physical memory available?

Thank you very much,
Any guidance will be appreciated.

Nov 16 '06 #3
Thank you very much for your help. I have the /3GB in our boot.ini file:

[boot loader]
redirect=UseBiosSettings
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windo ws Server 2003, Enterprise
3GB" /fastdetect /3GB /PAE /redirect /NoExecute=OptOut

Are there anything else we can do in order w3wp.exe to be able to use more
than 2 GB?

Thanks a lot.

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
escribió en el mensaje news:%2****************@TK2MSFTNGP06.phx.gbl...
unless your running 64 bit or 32bit with the 3gb switch, 2gb is the max
you can set the memory to.

-- bruce (sqlwork.com)

"Carmen" <quitaresto@cp*******@fcc.es@quitarestowrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

We have an application using .NET framework 1.1 and SQL Server 2000. The
application seems to be running very well until we get an OutOfMemory
error. The computer has enough memory, in fact, when the error takes
place there are 2 GB available in physical memory.
Some days ago, we have a limitation in memory for DefaultAppPool of 1,5
GB before recycling.This made the session information be lost quite
often, so, we decided to increase the limitation to 3GB and then, we got
the OutOfMemory error, although our server has 8GB of physical memory and
only 3GB is used by SQL Server. Now we have the Maximum used memory (in
megabytes) to 2100.
Do you have any clue about why we have memory problems when there are 2GB
of physical memory available?

Thank you very much,
Any guidance will be appreciated.


Nov 17 '06 #4
Are you doing any work like dynamically generating images using GDI?
If so you might want to make sure that the code cleans up after itself
correctly or your server memory will go through the roof!

On Thu, 16 Nov 2006 08:16:08 +0100, "Carmen"
<quitaresto@cp*******@fcc.es@quitarestowrote:
>Hi,

We have an application using .NET framework 1.1 and SQL Server 2000. The
application seems to be running very well until we get an OutOfMemory error.
The computer has enough memory, in fact, when the error takes place there
are 2 GB available in physical memory.
Some days ago, we have a limitation in memory for DefaultAppPool of 1,5 GB
before recycling.This made the session information be lost quite often, so,
we decided to increase the limitation to 3GB and then, we got the
OutOfMemory error, although our server has 8GB of physical memory and only
3GB is used by SQL Server. Now we have the Maximum used memory (in
megabytes) to 2100.
Do you have any clue about why we have memory problems when there are 2GB of
physical memory available?

Thank you very much,
Any guidance will be appreciated.
--

Bits.Bytes.
http://bytes.thinkersroom.com
Nov 17 '06 #5

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

Similar topics

0
by: Per Bergland | last post by:
After many woes, I finally managed to get a stack dump of my System Service (written in C#) that insists on crashing when launched at system boot time (see below on how to get this dump - I...
1
by: jason | last post by:
I have exhausted all resources, so perhaps someone out there can help. I have a 8MB string (that represents an html document) and I am trying to run a couple of regular expressions on this...
1
by: Ripul Handa | last post by:
Hi We are running IIS 5.0 cluster with cisco local director. We are running a website on 2 webservers and I have been observing that from past few days we have are getting this error message of...
5
by: Versteijn | last post by:
Hello all I have a ASPX file called scaleimage.aspx that scales my images down to a given width. This page is used very much in web project I am working on. But due to the large size of the...
1
by: SMG - Idealake | last post by:
Hi all, I am getting following error on my error, what could be the reason? Exception of type System.OutOfMemoryException was thrown. Description: An unhandled exception occurred during the...
4
by: Ed Chiu | last post by:
Hi, I migrated our company's ASP.Net web appplication from a regular Pentium 4 machine to a multiple xeon processors machine. The web application was acceptable in speed on the old machine, I...
1
by: Ashkan Daie | last post by:
Hi All, When trying to install a performance counter via InstallUtil I get the following exception: Creating performance counter category Enterprise Library Caching. An exception occurred...
6
by: chad | last post by:
assuming I have 2GB memory. And 1.5GB available. dim c1(,) as byte redim c1(1000, 1024*1024) throws system.outofmemoryexception. I'm like... huh? Initially I thought a lot of space is taken...
0
by: AY | last post by:
Hello, We use a third party reporting system (Actuate) which provides soap services via WSDL. My web application was initially built in Visual Studio 2003 using .NET 1.1. I was able to...
8
by: =?Utf-8?B?UGlnZ3k=?= | last post by:
Hi to all, I am getting this System.OutOfMemoryException calling the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method. The type of <streamis...
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
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
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.