473,549 Members | 2,741 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 3519

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*******@dynol ogy.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************* *********@s80g2 00...legr oups.com, "san"
<sh*******@gmai l.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
3255
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, no memory is lying around. GC reports only 84k of allocations. Starting 5-10 of this apps is going to start taking a considerable amount of memory....
2
4013
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 for the routines. So i ended with about 60MB at normal state and at working state (running a routine) with 80 to 90MB - thats relay huge. If a...
7
4024
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 form load event, but I don't see any significant drop in memory usage. Anybody know why? Thanks, Bhargavan
16
2375
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. Example: After about 5 hours with a concurrent user base of about 150 users the application raises the aspnet_wp memory usage by almost 500MB. If...
4
3898
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 WHOOPIN! 200MB and eventully the asp.net process restarts at 300MB and my application becomes "unavailable" with my sessions being destroyed. Is...
5
2167
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 outputs them in an XML document, mapping the source records into a third-party XML schema. The mapping process is handled by C# code that was...
17
5687
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 the same data set were unbelievable (the data is from Task Manager) : 32-bit Windows 2003 R2 Mem Usage: 481,400k Peak Mem: 583,020k
10
6670
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 occasional webserver errors. The application pool is configured to run as a domain user which has permissions to the web code. When we have...
2
4089
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 Consumer thread. The Producer thread (Enqueue) inserts some heavy user defined object in the Queue. The Consumer thread (Dequeue) deletes one object...
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7450
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7957
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
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 we have to send another system

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.