473,788 Members | 2,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout fixed by recompile

We have a very large app. 200+gig db with 3 databases and hundreds of
stored procs in each one. Its sql server 2000 (sp3) and asp.net 1.1. We
have a full DBA staff and troubleshoot normal blocking issues and other
valid timeout causes almost daily. We have seen an issue lately with
one of our stored procs where it decides it will no longer complete
when called from the web. It will timeout every time when run the web
front end until the proc is recompiled. While it is timing out, you can
run it from q-analyzer and it runs in <1 second. This sp is a single
select statement with 3 left joined tables, each one from a different
db on the same server. I am seeing others here who are experience
something similar but it seems no one has any ideas other than the
normal steps you take to troubleshoot a real timeout i.e blocking. I
took the code that makes the sp call and made a new project. I made a
button that calls on that problem stored procedure 10,000 times. When
the prod site is timing out non stop, I run my app and it runs the same
sp that times-out off the same database 10,000 times in about 4
seconds. Of course it also still works fine when run through analyzer.
We have thousands of users and this proc is run constantly. It normally
takes a week or so before the problem reappears. Recently it started to
come back every 15 minutes so the manual recompile wasn't enough. We
changed the proc to use dynamic sql and then executed it with
sp_executesql so it would use the same execution plan. Been working
fine for days now but I consider this a work around and it'd be great
to know what the real problem is. It's like .net is caching the
execution plan locally and then losing it for some reason after a time
and then is unable to get it back with the current connection. I guess
I should add that we have a data tier that all our sp calls are made
through so this proc is called exactly the same as the others in terms
of ado.net settings.

Mar 30 '06 #1
0 1263

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4846
by: HolaGoogle | last post by:
hi there, i've 2 questions for you guys.... 1: is there any way to "force" a session_onend(), session timeout or at least call my logout method when a user leaves the application window without logging out? i.e: using the "X" in the right corner??? i'd like to reset to their default all my variables session?? is this possible??? 2: I've succesfully been able to ask the user to confirm whether he wants to extend his session before it...
1
3668
by: levtoma | last post by:
Hello, We have an ADO.NET application using .NET version 1.1.4322 SP1. It is calling stored procedures in a database that it never written to. The only thing the stored procedures do is a select statement on a few tables that are joined. In the last few weeks we have experienced issues where, two or three of these stored procedures consistently timeout. When we recompile the stored procedures, the problem goes away for a period of...
7
33240
by: C# beginner | last post by:
I'm struggling with a timeout problem today. ConnectionString = "Integrated Security=true;Database=MyDatabase;Data Source=(local); Connection Timeout = 180;"; My connection string is set as above. A stored proc in my code takes about 50 secs. to execute and return. But, I get a connection time out error as follows. SqlException occurred when trying to execute stored proc
2
2398
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection connection = new SqlConnection(ConfigurationSettings.AppSettings)) {
3
13998
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection connection = new SqlConnection(ConfigurationSettings.AppSettings)) {
25
6101
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
2
10737
by: carl.rosenberger | last post by:
Hi, I am trying to get the following behaviour for my Socket connection: (1) Attempt a blocked read for a defined amount of time. (2) If a timeout occurs, because no data has been sent to the socket, throw an exception. (3) Catch the exception and either go back to (1) or quit reading, depending on a variety of (user defined) factors.
2
1317
by: helveticus | last post by:
I noticed that the download time of my site has increased quite dramatically over the last weeks. The ISP claims that my application needs to be re-compiled every 30 minutes, which may explain the delay after a certain period of inactivity. I am aware that sessions will time out by default after 30 minutes. I thought pages would compile whenever they are hit first but remain in a compiled state afterward. Am I missing something? (ASP.NET...
7
1887
by: =?Utf-8?B?a19tYW4=?= | last post by:
Hi all, Have a strange problem with SqlClient timeouts. Here is some background: About a month ago I upgrade from SQL 2000 to 2008. Am using Stored Procedures for all the data access. Most of them work fine, but I have some of them, about 20%, that give me time out errors. From my dev machine if I use SQL Server Management Studio and I right click on the SP, enter in the query parameters and execute it, the resultset comes
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.