Ask a Question related to Coldfusion Database Access, Design and Development.
-
mrgfunk #1
Diagnosing "Timeout Expired"
Hi,
Periodically, my web app logs are showing "timeout expired" errors when
connecting to my sql server. The timeout expired errors seem to correspond to
one error which states that the SQL server can't be found. This only happens
for about one second, twice per day, and other concurrent requests do not seem
to time out. This is a new error that just started appearing about a week ago.
I'm connecting via ODBC to SQL Server 2000.
I've spent the past week attempting to diagnose the problem.
What I have done thus far:
- My sql server performed an average of 40 queries per second. I reduced this
to about 18 by optimizing and removing some duplicate queries and other things
that weren't written optimally.
- Did a dbreindex for the entire db, removed old records which were no longer
used. Created some new indexes, which seemed to improve performance somewhat
(average CPU is now about 6% during peak hours). Statistics are updated nightly.
- Upgraded my network card to a gigabit card, connected through a new gigabit
switch. At one point, I assumed this must be a networking issue, but I believe
I've ruled this out. Neither server shows any logs of any network disconnects
at any time.
- Changed the schedule of my backups, as this seemed to be related, however,
it doesn't correspond to the errors at this point.
- Checked for long running queries. Corrected one, which was running an
average of 3 to 5 seconds, reduced it to a max of 500ms, average of 63ms. This
is still the longest running query on the server, but there's really nothing
that can be done to reduce the response time at this point (other than maybe
upgrading the server maybe).
- I/O seems normal. CPU never peaks above 50%, and is usually averaging 6%. DB
server has 1gig of ram, DB is 1.5gigs, but paging statistics don't seem to be
anything significant.
The errors *never* happen during peak times, but seem to be happening when the
server is under the least amount of load, generally between 11pm and 1am. There
is nothing scheduled during this time frame.
All of the queries that are timing out use "with (nolock)", so they shouldn't
be deadlocking. Typically these queries average between 0ms and 16ms, rarely
longer. None of the timed out queries are updates, only nolock reads.
I've covered everything that I can think of... is there anything else that I
should be looking at?
Geoff B
mrgfunk Guest
-
CFChart - message: "Image Expired .."
BUMP... I am having the same issue -
System.Data.SqlClient "Timeout expired" causing ASP.net web application to automatically restart.
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET... -
Question about redirecting to a "session expired" page...
This may sound trivial but I cannot figure out how to do this... When a logged in user's session expires, I want that user redirected back to the... -
Avoid "page has expired" message
Hi all, I have a website with a classic search form. When i go to results page and press the "back" button the message appears (The page has... -
Session Expired (sessionState mode="SQLServer")
Hi All, We have developmented Web project with ASP.Net and SQL server Database. In this project we have configured "SessionState" mode as... -
Sameer #2
Re: Diagnosing "Timeout Expired"
Timeout Expiry settings can be found at many levels: -
1. In CF Administrator, click on your DSN and make sure that "Connection
Timeout" is set to 0.
2. In SQL Server 2000, launch Enterprise Manager, select your server name,
right-click, properties, connections tab, make sure connection & query timeouts
are set to what you desire.
3. In ODBC, select your System DSN and click on Configure and make sure there
are no timeouts specified there.
Good Luck,
Sam.
Sameer Guest



Reply With Quote

