How to minimize memory usage by asp.net application

S

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.
 
T

tsaunders

san said:
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
 
B

Bruce Barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top