Diagnosing "Timeout Expired"

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. CFChart - message: "Image Expired .."
      BUMP... I am having the same issue
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139