Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi every one I received a mail

Status
Not open for further replies.

sbind77

Programmer
Oct 2, 2001
29
US
Hi every one

I received a mail from my client that my asp application is consuming lot of memory. It specifies that my application process size 10 times bigger than the normal web application.they ask me to review my asp code.

1.how to monitor the process size of an ASP application.?
2.what will be the postive cause of the above problem?
I am using 20 session variables per user.will this affect
the performance.
3.How to overcome the above problem?

Regards
Bala Thank You
sbind77
 
Minimize your use of session variables and application variables. Use cookies instead, if you can.
 
Granting that users turn cookies on that would be the best bet. But you can't go wrong with session("variables")
 
Can't you Set your sessions as nothing at the end of the page?

And Dim all your vairiables, and set those as nothing at the end of the page.
 

Tips:
a)Make sure you collect your garbage at the end of a program or procedure.
b) allocate resources late and deallocate as soon as you finish using them.
c)avoid manipulating recordset after response.write,
an sqlrs.getrows assigned to an array and manipulating that multidimensional array before any response would greatly improve performance.
d) Avoid using Session and application variables as much as you can.
e) Avoid using dictionaries and fso as much as you can. If you are good enough at SQL, a combination of bcp and sql is extremely faster than fso.
f)If you want to check size of your application, check out dllhost.exe and inetinfo on your task manager in the iis server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top