We have a web application based on asp.net 1.1. We deployed it on a web server but there is a problem about it.
In the webserver sometimes cpu usage is increasing to 100% and outofmemory exception is occuring.
I think there are some wrong code inside the project but i don’t know where it’s.
Now, i want hear your advices about how to find problem and what kind of codes make cpu usage increased.
it looks like the garbage collector is not doing its work as supposed for some reason. i suggest to look in the code where you have variable declarations inside long loops. for example you need to check for loops that look like this:
the above loop creates a lot of garbage so make sure to call
dispose()when you finish using an object.another issue to check for is recursion. if you have recursive calls, make sure to check that the breaking condition is correct and make sure to call
dispose()too before jumping in the next recursion.