473,396 Members | 2,052 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,396 software developers and data experts.

How can you specify and determine the memory limit of an ASP.NET application

I have two questions:

(1)
How (if possible) can you, with ASP.NET (and with the IIS 5 included
with win2000) specify an maximum limit of the memory that a web
application may consume, as an absolute number of megabytes ???
( I am aware of the "memoryLimit" attribute in the "processModel"
element in the Web.config but that only specifies the maximum allowed
memory size, as a percentage of total system memory, and I don't want
a percentage but a number of megabytes)

(2)
How (if possible) can you, programmatically determine how many
megabytes of the memory that is currently available for *my asp.net
application* ???
Note that I am *not* interested in the totally amount of currently
unused memory of the entire machine, but only how much more memory
*my* web application may consume.
My reason for asking these questions is that I am running an asp.net
site with a web host with a win2003 server with IIS 6 and they have
assigned each customer/application a specific amount of memory as a
number of megabytes, but as far as I know this is a new feature of a
win2003/IIS6 application pool which I therefore can not use on my own
win2000 machine, or is there some way of specifying a memory limit
with asp.net and win2000 ?

I myself only have a win2000 machine, which I use for developing/
testing my site locally and I would like to try the web application
locally until I have made sure that it does not use more memory than
the upper limit at the web host, because when it consumes that much
memory it seems to make the entire web app totally unavailable even
including all the static html pages.

Regarding my second question, I am running some threads in the
background which are triggered when users accecces certatin pages
(the purpose of these threads is to do some quite demanding stuff that
might otherwise make the accesses to asp pages slow).
However, from these threads I would like to check how much memory is
available for *my* application so I can exit from the thread if I am
running out of memory, instead of keep consuming memory until the
entire web application becomes unavailable.

/ Tomas

Nov 18 '05 #1
0 1830

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

Similar topics

1
by: 1944USA | last post by:
I have a C# application written as a Windows Service. It spawns a number of threads, each thread has very large memory intensive processes running on it. I can keep adding threads as long as the...
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...
21
by: Joakim Hove | last post by:
Hello, I have implemented a small library with a function a datatype to manage temporary storage, and handle out correctly casted storage. The function to get a double pointer is for instance: ...
10
by: VM | last post by:
How can I limit the use of the PC's virtual memory? I'm running a process that basically takes a txt file and loads it to a datatable. The problem is that the file is over 400,000 lines long (77...
6
by: Stan | last post by:
There was a number of postings about aspnet_wp worker process taking too much memory and eventually choking the webserver. One issue is still not clear to me - how can I narrow it down to an...
4
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web...
6
by: Yahya | last post by:
Dear Sirs, I have developed a VB .Net windows application, but unfortunately when I this application tries to use more than 2GB memory it fails although there is available 4GB of memory on the...
1
by: Johnny Granberg | last post by:
Im trying to create a application in vb.net that handles images, these images can be very large and i usualy get OutOfMemory error when i get to about 800Mb of memory usage... The strange thing...
158
by: jty0734 | last post by:
i don't know what input size of string is. so i can't gets inputsize before malloc function. i want determine the size of malloc without get inputsize in advance. how to deal with it?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.