473,513 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to minimize memory usage by asp.net application

san

we cannot stop the application from increasingly use memory. The CRM
Worker process will continually consume memory but not release it back
to the system. Please research into how to make the application consume
less memory or at least release the memory when it is done processing a
request.
It seem like you can be logged in for any amount of time without an
issue, I've been told you shouldn't be logged out until idle for 2
hours but people are having this issue of timeout.

We have added a more robust server to our web farm. This server has 4GB
of memory and is faster. With this additional server, our users are
experiencing timeouts much less frequently.
We are seeing new behavior with the addition of the new server. On the
new server we have set Machine.config as well as IIS to recycle the
worker process after 80% memory usage (3.2GB). However, the application
itself is failing to respond after 1.2 GB of usage. We see that the
worker process is still running but users report that the system is
slow and unresponsive at best.
We are having to recycle the worker process ourselves once it hits this
limit. This happens roughly every 3-3.5 hours.
Can you please help me how to minimize memory usage by application.
(may be due to our appplication is using many session variables )

Looking for your support/suggestions to comeout form this critical
issue.
Regards,
San D.

Jan 8 '07 #1
3 3516

san wrote:
we cannot stop the application from increasingly use memory. The CRM
Worker process will continually consume memory but not release it back
to the system. Please research into how to make the application consume
less memory or at least release the memory when it is done processing a
request.
It seem like you can be logged in for any amount of time without an
issue, I've been told you shouldn't be logged out until idle for 2
hours but people are having this issue of timeout.

We have added a more robust server to our web farm. This server has 4GB
of memory and is faster. With this additional server, our users are
experiencing timeouts much less frequently.
We are seeing new behavior with the addition of the new server. On the
new server we have set Machine.config as well as IIS to recycle the
worker process after 80% memory usage (3.2GB). However, the application
itself is failing to respond after 1.2 GB of usage. We see that the
worker process is still running but users report that the system is
slow and unresponsive at best.
We are having to recycle the worker process ourselves once it hits this
limit. This happens roughly every 3-3.5 hours.
Can you please help me how to minimize memory usage by application.
(may be due to our appplication is using many session variables )

Looking for your support/suggestions to comeout form this critical
issue.
Regards,
San D.
I have noticed with the site that I run, that I had issue with Session
variables (I was using a lot of them). I have changed out most of them
and am looking into ways to encrypt the querystring to get away from
session variables.

Terry

Jan 8 '07 #2
some interesting topics I found out...

hope this helps:
http://www.codeproject.com/useritems..._Practices.asp

ts*******@dynology.com wrote:
san wrote:
we cannot stop the application from increasingly use memory. The CRM
Worker process will continually consume memory but not release it back
to the system. Please research into how to make the application consume
less memory or at least release the memory when it is done processing a
request.
It seem like you can be logged in for any amount of time without an
issue, I've been told you shouldn't be logged out until idle for 2
hours but people are having this issue of timeout.

We have added a more robust server to our web farm. This server has 4GB
of memory and is faster. With this additional server, our users are
experiencing timeouts much less frequently.
We are seeing new behavior with the addition of the new server. On the
new server we have set Machine.config as well as IIS to recycle the
worker process after 80% memory usage (3.2GB). However, the application
itself is failing to respond after 1.2 GB of usage. We see that the
worker process is still running but users report that the system is
slow and unresponsive at best.
We are having to recycle the worker process ourselves once it hits this
limit. This happens roughly every 3-3.5 hours.
Can you please help me how to minimize memory usage by application.
(may be due to our appplication is using many session variables )

Looking for your support/suggestions to comeout form this critical
issue.
Regards,
San D.

I have noticed with the site that I run, that I had issue with Session
variables (I was using a lot of them). I have changed out most of them
and am looking into ways to encrypt the querystring to get away from
session variables.

Terry
Jan 8 '07 #3
Unless you are running 64 bit version of the o/s or running the 3g switch,
2gb is the max memory size.

You need to determine if you have memory leaks (common if you use any com
objects). You also need to determine if you are using manged or unmanged
memory. see:

http://msdn2.microsoft.com/en-us/library/ms954591.aspx

If your memory usage is just session, then switch to sqlserver sessions
(should not use inproc with production sites anyway).
-- bruce (sqlwork.com)

On 1/8/07 4:11 AM, in article
11**********************@s80g2000cwa.googlegroups. com, "san"
<sh*******@gmail.comwrote:
>
we cannot stop the application from increasingly use memory. The CRM
Worker process will continually consume memory but not release it back
to the system. Please research into how to make the application consume
less memory or at least release the memory when it is done processing a
request.
It seem like you can be logged in for any amount of time without an
issue, I've been told you shouldn't be logged out until idle for 2
hours but people are having this issue of timeout.

We have added a more robust server to our web farm. This server has 4GB
of memory and is faster. With this additional server, our users are
experiencing timeouts much less frequently.
We are seeing new behavior with the addition of the new server. On the
new server we have set Machine.config as well as IIS to recycle the
worker process after 80% memory usage (3.2GB). However, the application
itself is failing to respond after 1.2 GB of usage. We see that the
worker process is still running but users report that the system is
slow and unresponsive at best.
We are having to recycle the worker process ourselves once it hits this
limit. This happens roughly every 3-3.5 hours.
Can you please help me how to minimize memory usage by application.
(may be due to our appplication is using many session variables )

Looking for your support/suggestions to comeout form this critical
issue.
Regards,
San D.
Jan 8 '07 #4

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

Similar topics

6
3233
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
4008
by: Matthias Kwiedor | last post by:
Hi! I have a small ;) application which needs just to load up the Main Form 40MB (there is a IE Instance implementet). After that i managed with own Memory Managment to need just 10 to 20MB more...
7
4021
by: Bhargavan | last post by:
Hey Group, When I minimize and then maximize a form (in windows application), I see a significant drop in memory usuage in the task manager. I tried to do the same thing programatically during the...
16
2370
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. ...
4
3895
by: Ethan Chan | last post by:
I have recently been deploying a asp.net extranet application. The asp.net worker process starts off with 30MB virtual memory and then upon serving a few pages, the memory usage increases to a...
5
2166
by: Mike S | last post by:
I'm working on a .NET application that was under development by a previous developer, who is no longer working with the company. The program basically extracts records from a source database and...
17
5685
by: Frank Rizzo | last post by:
Hello, I've compiled my app for AnyCPU setting in vs2005. Then I tried the app on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory usage of the application when working on...
10
6662
by: Daniel Peterson | last post by:
I'm responsible for a pair of IIS 6 webservers that run our production ASP.Net application. We push code on a monthly basis, and about two weeks after our October code push, we started to run into...
2
4087
by: manojmohadikar2008 | last post by:
Hi All, We are observing a serious issue with the memory usage of Queue and its very critical issue which needs to be fixed. We have an application which runs two threads i.e. a Producer and a...
0
7260
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
7162
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
7384
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
7527
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...
0
5686
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,...
1
5090
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...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.