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!

ASP .NET Progressively slower over time

Status
Not open for further replies.

tecknick

Programmer
Aug 23, 2002
7
AU
Hi

I have this weird situation which I cannot seem to find a solution for.

I have a web server running windows server 2000 w IIS 5.0 and it has an ASP .NET application that runs from it. It is the only thing that runs on this machine. When I update my application, the JIT compile happens and as a result the first request is a little slower than usual which is expected. After that all requests are really fast. After a day or two has passed and the web server has received a lot of requests, the response times of the asp .net application increase dramatically.

So I initially thought that it was just another funny microsoft thing so I restarted the web server and after the JIT complie runs on the first request after restart, the asp .net application is running fast again. But as the days go by the application response times increase. The appplication is using only a small percentage of the memory and CPU on the machine and I am stuck as to where I should start trying to troubleshoot this problem.

One thing that I have noticed is that the more requests the application gets, the quicker it gets slower.

Any suggestions? I am sick and tired of restarting the machine every day or two. Is it IIS? or Windows Server? or ASP .NET?

HELP ! ! ! !

Thanks

tecknick
 
What is happening to the memory usage (check the aspnet_wp process is task manager)?.

If you see that the memory usage seems to continually get higher and higher, or if it just appears to be using a lot of memory, it may be that yuou are not releasing object from memory correctly (although I would expect the garbage collector to gather these up).

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Hi

I have checked the memory usage of the ASP .NET worker process and it is normal. By this I mean that the worker process is only using a very small percentage of the memory and CPU. It is slightly higher when the application starts running slow but this is negligible.

Any other suggestions?

Thanks

tecknick
 
In that case I would add tracing to the page as this should show you what processes are taking a long time.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
If you have SQL server as your DB and do a lot of SQL/Proc etc, sometimes connections and licences etc bog down too.
 
Hey guys.

Thanks for the advice. I will look into the tracing and also check out the SQL Server connections as well.

tecknick
 

Also, maybe your pages create log file and / or (open/read/modify) it. With time the log file grows bigger and will take longer time to read.
Another thing is the issue of connection pooling. If you use it, it might help speed up connections.

Just guessing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top