Thursday, March 22, 2012

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.A common source of memory problems is not closing database connections.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Carmen" <quitaresto@.cpachecoe@.fcc.es@.quitarestowrote in message
news:%23OkvY8UCHHA.5012@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

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.
>


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@.cpachecoe@.fcc.es@.quitarestowrote in message
news:%23OkvY8UCHHA.5012@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

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.
>


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="Windows 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_r_u_c_e_removeunderscores@.sqlwork.com>
escribi en el mensaje news:%237F$M4ZCHHA.5012@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

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@.cpachecoe@.fcc.es@.quitarestowrote in message
news:%23OkvY8UCHHA.5012@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

>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.
>>


>
>


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@.cpachecoe@.fcc.es@.quitarestowrote:

Quote:

Originally Posted by

>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

0 comments:

Post a Comment