Thursday, March 22, 2012
System.OutOfMemoryException
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@.quitaresto> wrote in message
news:%23OkvY8UCHHA.5012@.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.
>
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@.quitaresto> wrote in message
news:%23OkvY8UCHHA.5012@.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.
>
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)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WIND
OWS="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...
> 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@.quitaresto> wrote in message
> news:%23OkvY8UCHHA.5012@.TK2MSFTNGP06.phx.gbl...
>
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@.quitaresto> wrote:
>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 o
f
>physical memory available?
>Thank you very much,
>Any guidance will be appreciated.
>
--
Bits.Bytes.
http://bytes.thinkersroom.com
System.OutOfMemoryException
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
Tuesday, March 13, 2012
System.Security.Cryptography.CryptographicExceptio n:
I have two web applications running on my machine.The
application is developed using asp.net 1.1 and vb.net.When i try to run
both the applications in the same browsers, i get the following error.
(System.Security.Cryptography.CryptographicExcepti on: Bad Data. at
System.Security.Cryptography.CryptoAPITransform._D ecryptData(IntPtr
hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone) at
System.Security.Cryptography.CryptoAPITransform.Tr ansformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFin alBlock() at
System.Web.Configuration.MachineKey.EncryptOrDecry ptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length) at
System.Web.Security.FormsAuthentication.Decrypt(St ring
encryptedTicket))
That is, when i run the first application and run the second
application in the same browser, i get this error.If i run it in two
different browsers, then it works fine.
Can any one help me out.r u using Forms authentication?
"muthu" <s.muthumanickam@.gmail.comwrote in message
news:1152521970.538688.249490@.m73g2000cwd.googlegr oups.com...
Quote:
Originally Posted by
Hi,
>
I have two web applications running on my machine.The
application is developed using asp.net 1.1 and vb.net.When i try to run
both the applications in the same browsers, i get the following error.
(System.Security.Cryptography.CryptographicExcepti on: Bad Data. at
System.Security.Cryptography.CryptoAPITransform._D ecryptData(IntPtr
hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone) at
System.Security.Cryptography.CryptoAPITransform.Tr ansformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFin alBlock() at
System.Web.Configuration.MachineKey.EncryptOrDecry ptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length) at
System.Web.Security.FormsAuthentication.Decrypt(St ring
encryptedTicket))
>
That is, when i run the first application and run the second
application in the same browser, i get this error.If i run it in two
different browsers, then it works fine.
>
Can any one help me out.
>