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

Out of memory when having lot of memory!

jmr
Hi All,

Our aspnet application is randomly thrown this exception:
System.OutOfMemoryException

It only happens on our bigger 2003 server (4GB of ram!)

I've found this on Microsoft site:
http://support.microsoft.com/kb/820108

This could be our problem but how to be sure ?
To be honest, I'm a bit nervous changing the boot.ini on a remote server.

Has someone already applied this /3GB stuff in boot.ini.

Thanks for any feedback,
Jean-Michel
Nov 22 '07 #1
3 1041
On Nov 22, 10:33 am, jmr <jmrinva...@anvil.comwrote:
Hi All,

Our aspnet application is randomly thrown this exception:
System.OutOfMemoryException

It only happens on our bigger 2003 server (4GB of ram!)

I've found this on Microsoft site:http://support.microsoft.com/kb/820108

This could be our problem but how to be sure ?
To be honest, I'm a bit nervous changing the boot.ini on a remote server.

Has someone already applied this /3GB stuff in boot.ini.

Thanks for any feedback,
Jean-Michel
You might have a memory leak.
Read http://www.codeproject.com/showcase/...TSProfiler.asp
for a classic (costly) example as to how handlers can cause leaks.

Nov 22 '07 #2
Hello jmr,

the problem lays in the nature of CLR memory management.
The keyword is that memory MAY be fragmented.
As u may know memory is reserved in blocks 32/64mb, and when your app request
another 10kb, CLR might don't find enough place in fragmented memory to reserve
another block

just to google and u find some mine post where i described this
http://www.google.com/search?hl=en&r...memory&spell=1

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
jHi All,
j>
jOur aspnet application is randomly thrown this exception:
jSystem.OutOfMemoryException
j>
jIt only happens on our bigger 2003 server (4GB of ram!)
j>
jI've found this on Microsoft site:
jhttp://support.microsoft.com/kb/820108
jThis could be our problem but how to be sure ?
jTo be honest, I'm a bit nervous changing the boot.ini on a remote
jserver.
jHas someone already applied this /3GB stuff in boot.ini.
j>
jThanks for any feedback,
jJean-Michel
Nov 23 '07 #3
jmr
bruce barker wrote:
the microsoft article is about the 3gb switch. normally a process can
only access 2gb of memory. the article you give allows modification of
nt to allow 3gb of memory. the 3gb switch limits the amount of memory
the os has access t0 (1gb), so you should only do this on a server thats
dedicated to one application, or nt might get out of memory errors.

a normal website should not be using 2gb of memory, unless there is a
memory leak, which is probably your problem.
Thanks for the answer.
So you if you want to develop a "non normal" website needing more
memory, you cannot just buy memory and put it into your box because
windows limitations !

Also, about memory leaks, some ASP.NET announces says it should not be a
problem:
ASP.NET ensures that your application is always available to your users.
* Memory Leak, DeadLock and Crash Protection. ASP.NET
automatically detects and recovers from errors like deadlocks and memory
leaks to ensure your application is always available to your users.

I must say I'm a bit disapointed.

Jean-Michel
Nov 23 '07 #4

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

Similar topics

1
by: myren, lord | last post by:
When I first discovered shared memory (between multiple processes) I immediately started thinking of how to build my own VM subsystem + locking mechanisms for a large single block of memory. This...
1
by: Antar | last post by:
Hi, I'm kind of a newbie on DB management but I have to deal with a huge DB used for real time operations. I got a temporal table where current data is stored to work with frecuently, and then a...
6
by: Andrzej | last post by:
Used to read newsgroup for answers, now have to ask for them as well. I have an application (C#, .NET 1.1) that connects to local db on MSDE 2000 SP3a (using ADO from MDAC 2.71) on one side and...
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...
12
by: ira2402 | last post by:
Hi All, We are developing sw for a small embedded OS and we have limited memory. We are looking for algorithms, links, and articles about this. The goal is efficient utilization of small amount...
7
by: trialproduct2004 | last post by:
Hi all I am having application in c# where i am loading one table of database into dataset. My table is of large size. so whenever i am loading that into dataset my memory size is getting...
8
by: Bob Dufour | last post by:
We got a windows form application that we wrote in VB.Net. Essentially its a manager for a list of persons and their contacts and some other info about the persons. No rocket science but lots of...
7
by: HeatherS | last post by:
We are having issues with our windows services using memory and never releasing it. We have one service that has a file watcher which takes an xml file, inserts some records into a database, and...
14
by: Joe | last post by:
I'm trying to track down where objects are referenced because I want to clean up the memory when I'm done with them. I thought I found all references but it doesn't seem that way because calling...
2
by: a_agaga | last post by:
Do you know are there some reasons why many do not make processes to communicate through memory? Why network connections (sockets) are used so commonly in IPC (inter process communication)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.