Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

My ASP.Net web application is hosted on a server (coming to this later) and since couple of days or may be months now I am facing a problem that I am getting intermittent time outs in the application screens. At times when I click on a Search button, I get results within seconds and at times the same function takes 7-8 minutes and then shows a time out.

Now I am talking in terms of a web application which is hosted on shared servers and using a Oracle database. I do not have any idea if this is a Oracle db issue or something related to Network Traffic or server usage or CPU utilization but I am in a dire need of bringing up, either a solution or at least some pointers for the network team to check on this problem.

Had it been a application issue, I would have faced the same issue all the time I used the functionality but that is not the case.

Any help in this regards would be highly appreciated

Thanks !
Posted
Comments
DamithSL 27-May-14 8:58am    
for searching are you using any stored procedure or executing sql statement from c# code?
V. 27-May-14 9:14am    
add logs in the different steps of the application. When a slow search occurs, check the timestamps of each step to check what is taking so long.

use one of logging tool like log4net[^] and log the details of search start time and search inputs, if any exception log full exception details, search end time etc..
you can find many articles about how to configure and use log4net in ASP.NET
Log4Net with ASP.NET 3.5 – File Appender[^]

with above information on your log file you can easily find the issue.
 
Share this answer
 
v2
Hello GP,

At times when I click on a Search button, I get results within seconds and at times the same function takes 7-8 minutes and then shows a time out.
This indicates to me that you should be looking at the search query. Look at the SQL Query that runs when user clicks on the search button. Use SQLPlus to run the query and see whether it takes time to returns the results. If so then you need to tune the query. Following articles may help you in understanding the query tuning.

Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900